Option<R> class sealed

Inheritance
Implementers

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

asEffect Effect<Never, Never, R>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

getSomes<R>(Iterable<Option<R>> iterable) Iterable<R>
safeCastStrict<R, V>(V value) Option<R>