Option<T> class
sealed
- Implementers
- Available Extensions
Constructors
- Option()
-
const
- Option.none()
-
constfactory
- Option.some(T value)
-
constfactory
Properties
Methods
-
map<
TResult extends Object?> ({required NoneCallback< TResult> none, required SomeCallback<TResult, T> some}) → TResult -
mapOrNull<
TResult extends Object?> ({NullableNoneCallback< TResult> ? none, NullableSomeCallback<TResult, T> ? some}) → TResult? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> ({required ValueNoneCallback< TResult> none, required ValueSomeCallback<TResult, T> some}) → TResult
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited