ErrorResult class
A result representing a thrown error.
Constructors
- ErrorResult(Object error, StackTrace stackTrace)
 
Properties
- asError → ErrorResult
 - 
          If this is an error result, returns itself. [...]
          read-only, override
 - 
          asFuture
          → Future<
Null>  - 
          A future that has been completed with this result as a value or an error.
          read-only, override
 - 
          asValue
          → ValueResult<
Null>  - 
          If this is a value result, returns itself. [...]
          read-only, override
 - error → Object
 - 
          The error object that was thrown.
          final
 - hashCode → int
 - 
          The hash code for this object. [...]
          read-only, override
 - isError → bool
 - 
          Whether this result is an error result. [...]
          read-only, override
 - isValue → bool
 - 
          Whether this result is a value result. [...]
          read-only, override
 - stackTrace → StackTrace
 - 
          The stack trace corresponding to where error was thrown.
          final
 - runtimeType → Type
 - 
          A representation of the runtime type of the object.
          read-only, inherited
 
Methods
- 
          addTo(
EventSink sink) → void  - 
          Adds this result to an EventSink. [...]
          override
 - 
          complete(
Completer completer) → void  - 
          Completes a completer with this result.
          override
 - 
          handle(
Function errorHandler) → void  - Calls an error handler with the error and stacktrace. [...]
 - 
          noSuchMethod(
Invocation invocation) → dynamic  - 
          Invoked when a non-existent method or property is accessed. [...]
          inherited
 - 
          toString(
) → String  - 
          Returns a string representation of this object.
          inherited
 
Operators
- 
          operator ==(
Object other) → bool  - 
          This is equal only to an error result with equal error and stackTrace.
          override