Result<S, E> class

This can be returned on any operation which may or may not succeed for any defined reason

Constructors

Result.Error(E error)
factory
Result.Ok(S result)
factory

Properties

error → E?
final
hashCode int
The hash code for this object.
no setterinherited
isError bool
no setter
isOk bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
success → S?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
unrwap() → dynamic
Depending on isOk this will return the value of type S or type E

Operators

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