ResultChecker<ERR extends Object, OK extends Object> class

Constructors

ResultChecker(Result<ERR, OK> _result)

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

elseDo(void callback()) → void
Defines the callback that is called when the result wasn't matched by any of the earlier checks. Example:
ifErr<ERR_T extends ERR>(void callback(ERR_T)) → void
Checks if the result is an error. If it is, the callback function is called. Example:
ifOk<OK_T extends OK>(void callback(OK_T)) → void
Checks if the result is an ok value. If it is, the callback function is called. Example:
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