option
library
Extension Types
Option
Option represents the union of two types - Some<T>
and None
. As an extension type of T?
, Option<T>
has the same runtime cost of T?
with the advantage of being able to chain null specific operations.
Some
Represents a value that is present. The erasure of this is T
.
Extensions
FutureOptionExtension
on FutureOption <T >
FutureOption represents an asynchronous Option . And as such, inherits all of Option 's methods.
FutureOptionOptionExtension
on FutureOption <Option <T > >
FutureOptionRecord2Extension
on FutureOption <(T , U ) >
FutureOptionResultExtension
on FutureOption <Result <S? , F > >
FutureToOption
on Future <T? >
NoneMethodsExtension
on _None
OptionMethodsExtension
on Option <T >
OptionNestedRecord3Extension
on Option <((A , B ) , C ) >
OptionNestedRecord4Extension
on Option <(((A , B ) , C ) , D ) >
OptionNestedRecord5Extension
on Option <((((A , B ) , C ) , D ) , E ) >
OptionNullableExtension
on Option <T? >
OptionOptionExtension
on Option <Option <T > >
OptionRecord2Extension
on Option <(T , U ) >
OptionResultExtension
on Option <Result <S? , F > >
OptionToFutureOption
on Option <T >
RecordFunctionToOption10
on (Option <A > Function() , Option <B > Function() , Option <C > Function() , Option <D > Function() , Option <E > Function() , Option <F > Function() , Option <G > Function() , Option <H > Function() , Option <I > Function() , Option <J > Function() )
RecordFunctionToOption2
on (Option <A > Function() , Option <B > Function() )
RecordFunctionToOption3
on (Option <A > Function() , Option <B > Function() , Option <C > Function() )
RecordFunctionToOption4
on (Option <A > Function() , Option <B > Function() , Option <C > Function() , Option <D > Function() )
RecordFunctionToOption5
on (Option <A > Function() , Option <B > Function() , Option <C > Function() , Option <D > Function() , Option <E > Function() )
RecordFunctionToOption6
on (Option <A > Function() , Option <B > Function() , Option <C > Function() , Option <D > Function() , Option <E > Function() , Option <F > Function() )
RecordFunctionToOption7
on (Option <A > Function() , Option <B > Function() , Option <C > Function() , Option <D > Function() , Option <E > Function() , Option <F > Function() , Option <G > Function() )
RecordFunctionToOption8
on (Option <A > Function() , Option <B > Function() , Option <C > Function() , Option <D > Function() , Option <E > Function() , Option <F > Function() , Option <G > Function() , Option <H > Function() )
RecordFunctionToOption9
on (Option <A > Function() , Option <B > Function() , Option <C > Function() , Option <D > Function() , Option <E > Function() , Option <F > Function() , Option <G > Function() , Option <H > Function() , Option <I > Function() )
RecordToOption10
on (Option <A > , Option <B > , Option <C > , Option <D > , Option <E > , Option <F > , Option <G > , Option <H > , Option <I > , Option <J > )
RecordToOption2
on (Option <A > , Option <B > )
RecordToOption3
on (Option <A > , Option <B > , Option <C > )
RecordToOption4
on (Option <A > , Option <B > , Option <C > , Option <D > )
RecordToOption5
on (Option <A > , Option <B > , Option <C > , Option <D > , Option <E > )
RecordToOption6
on (Option <A > , Option <B > , Option <C > , Option <D > , Option <E > , Option <F > )
RecordToOption7
on (Option <A > , Option <B > , Option <C > , Option <D > , Option <E > , Option <F > , Option <G > )
RecordToOption8
on (Option <A > , Option <B > , Option <C > , Option <D > , Option <E > , Option <F > , Option <G > , Option <H > )
RecordToOption9
on (Option <A > , Option <B > , Option <C > , Option <D > , Option <E > , Option <F > , Option <G > , Option <H > , Option <I > )
SomeMethodsExtension
on Some <T >
Constants
None
→ const _None
Represents a value that is absent. The erasure of this is null
.