OptionNestedOps<A>
Additional functions that can be called on a nested Option.
Methods
flatten() extension
Option<A> flatten()If this is a Some, the value is returned, otherwise None is returned.
Available on Option<A>, provided by the OptionNestedOps<A> extension
Implementation
dart
Option<A> flatten() => fold(() => none<A>(), identity);