Some<T> class
final
- Inheritance
- Available extensions
- Annotations
-
- @immutable
Properties
Methods
-
asNullable(
) → T? -
Available on Option<
Returns Some.value orT> , provided by the OptionConvenience extensionnull
for None. -
map<
R> (R mapper(T)) → Option< R> -
Available on Option<
Maps an OptionT> , provided by the OptionConvenience extension -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
unwrapOr(
T defaultValue) → T -
Available on Option<
Returns Some.value ifT> , provided by the OptionConvenience extensionthis
is a Some. Otherwise, returnsdefaultValue
(when None). -
unwrapOrElse(
T defaultFn()) → T -
Available on Option<
Returns Some.value ifT> , provided by the OptionConvenience extensionthis
is a Some. Otherwise, calls and returns the result ofdefaultFn
(when None).
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override