Right<L, R> class
Constructors
- Right(R _value)
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- isLeft → bool
-
Returns true if this is a Left, false otherwise.
no setterinherited
- isRight → bool
-
Returns true if this is a right, false otherwise.
no setterinherited
-
left
→ LeftProjection<
L, R> -
Projects this Either as a Left
no setterinherited
-
right
→ RightProjection<
L, R> -
Projects this Either as a Right
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → R
-
no setter
Methods
-
fold<
Z> (Z onLeft(L l), Z onRight(R r)) → Z -
Applies
onLeft
if this is a Left oronRight
if this is a Rightoverride -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
swap(
) → Either< R, L> -
If this is a Left, then return the left value in Right or vice versa.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object that) → bool -
The equality operator.
override