DwCallResult<R> class sealed

The answer to every request and command. Exhaustive by construction: a caller that switches over it cannot forget the refusal or the failure.

Available extensions

Properties

hashCode → int
The hash code for this object.
no setterinherited
isOk → bool
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
valueOrNull → R?
The value of a successful result, or null for any other.
no setter
valueOrThrow → R

Available on DwCallResult<R>, provided by the DwCallResultValue extension

The value of a successful result; otherwise the typed exception of the outcome: DwRefusalException, DwNotAuthenticatedException or DwFailedException.
no setter

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