Left<L, R> class

Represents a Left value of Either (commonly used for failure).

Inheritance

Constructors

Left(L _value)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
isLeft bool
Returns true if the value is a Left.
no setteroverride
isRight bool
Returns true if the value is a Right.
no setteroverride
left → L
Gets the Left value. Throws if it's Right.
no setteroverride
Throws if accessed on Left.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fold<T>(T ifLeft(L), T ifRight(R)) → T
Executes ifLeft with the value.
override
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