Result<T, E> class
sealed
The outcome of a fallible operation: Ok carrying a T, or Err carrying
an E. Never an exception. Sealed, so a switch over it is exhaustive at
compile time.
The failure is a type parameter, not a fixed shape: decoding uses
Result<T, DecodeError>, and anything else you compose with generated code
picks its own E.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited