Either<L, R> class

Either can be used to return a result in an either, or style.

Constructors

Either.left(L? _left)
Either.left is the constructor for returning a left value.
const
Either.right(R? _right)
Either.left is the constructor for returning a right value.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
left → L
left is a getter that returns the left value.
no setter
left is a getter that returns the right value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → dynamic
value is a getter that returns the set value.
no setter

Methods

isLeft() bool
isLeft returns true if the instance contains a left value.
isRight() bool
isRight returns true if the instance contains a right value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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