Right<L, R> class
Represents a Right value of Either (commonly used for success).
Constructors
- Right(R _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
-
Throws if accessed on Right.
no setteroverride
- right → R
-
Gets the Right value. Throws if it's 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
ifRightwith 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