Value<V, E extends Object> class
Value case.
Constructors
- Value(V _value)
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isException → bool
-
no setteroverride
- isValue → bool
-
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
access<
T> (T onValue(V success), T onException(E exception)) → T -
override
-
map<
NV, NE extends Object> ({NV value(V v)?, NE exception(E e)?}) → Result< NV, NE> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
unwrap(
) → V -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited