Result<S, E extends Object> class abstract

Base class declaring the interface.

Implementers

Constructors

Result()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
isException bool
no setter
isValue bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

access<T>(T onValue(S value), T onException(E exception)) → T
map<NS, NE extends Object>({NS value(S v)?, NE exception(E e)?}) Result<NS, NE>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
unwrap() → S

Operators

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

Static Methods

exception<V, E extends Object>(E failure) → dynamic
value<V, E>(V success) → dynamic