OptionallyUsing<T> class

Inheritance

Constructors

OptionallyUsing(T value, Optional<T Function(T value)> optionalMapper)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
optional Optional<T Function(T value)>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
finalinherited

Methods

map<R>(R mapper(T value)) Using<R>
Alter the value without mutating the field
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
optionally<O>(T Function(T value) mapper(O optional), Optional<O> optional) OptionallyUsing<T>
Alter the value if provided a present optional
inherited
optionally2<V>(T mapper(T value, V optional), Optional<V> optional) Using<T>
inherited
orElse(T mapper(T value)) Using<T>
Alter the value when provided with an empty optional
toString() String
A string representation of this object.
inherited
within<R>(R mapper(T value)) → R
Consume the using to result in a value
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited