Option<R> class
sealed
Constructors
- Option()
-
const
- Option.fromJson(dynamic json, R fromJson(dynamic json))
-
factory
- Option.fromNullable(R? value)
-
factory
- Option.fromPredicate(R value, bool predicate(R r))
-
factory
- Option.safeCast(dynamic value)
-
factory
- Option.tryCatch(R f())
-
factory
Properties
Methods
-
andThen<
C> (C f(R r)) → Option< C> -
ap<
V> (Option< V Function(R r)> f) → Option<V> -
filter(
bool f(R r)) → Option< R> -
filterMap<
C> (Option< C> f(R r)) → Option<C> -
flatMap<
C> (Option< C> f(R r)) → Option<C> -
getOrNull(
) → R? -
map<
V> (V f(R r)) → Option< V> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
provide<
L, V> (L onNone()) → Effect< V, L, R> -
tap<
C> (Option< C> f(R r)) → Option<R> -
toEither<
L> (L onLeft()) → Either< L, R> -
toJson(
Object? toJson(R value)) → Object? -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited