MaybeError<T> class

A Maybe that holds an error thrown during the computation of a value.

Inheritance

Constructors

MaybeError(Object error, [StackTrace? stackTrace])
Create a Maybe holding an error
const

Properties

error Object
Exception thrown during the computation of value.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
The stack trace of the thrown exception
final
unwrap → T
Get the wrapped value or throw error if this Maybe represents an error.
no setterinherited
value → T?
The value or null if there was an error during computation
no setteroverride

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