Optional<T> class
abstract
Constructors
- Optional.of(T value)
-
factory
- Optional.ofNullable(T? value)
-
factory
Properties
Methods
-
map<
R> (R? mapper(T value)) → Optional< R> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
orElse(
T getter()) → T -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited