MaybeValue<T> class

A Maybe that holds a value that was computed successfully.

Inheritance

Constructors

MaybeValue(T value)
Create a Maybe holding a value.
const

Properties

error Object?
Exception thrown during the computation of value.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
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
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

Operators

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