Left<L, R> class
final
- Inheritance
- Available extensions
Constructors
- Left(L value)
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → L
-
final
Methods
-
combine<
R2> (Either< L, R2> other) → Either<L, (R, R2)> -
inherited
-
doOnLeft(
void block(L v)) → Either< L, R> -
Available on Either<
Performs a side-effect by runningL, R> , provided by the DoEither extensionblockfunction if the value is left and returns the same Either. -
doOnLeftAsync(
FutureOr< void> block(L v)) → AsyncEither<L, R> -
Available on Either<
L, R> , provided by the EitherAsync extension -
doOnRight(
void block(R v)) → Either< L, R> -
Available on Either<
Performs a side-effect by runningL, R> , provided by the DoEither extensionblockfunction if the value is right and returns the same Either. -
doOnRightAsync(
FutureOr< void> block(R v)) → AsyncEither<L, R> -
Available on Either<
L, R> , provided by the EitherAsync extension -
flatMap<
T> (Either< L, T> f(R)) → Either<L, T> -
override
-
flatMapAsync<
T> (FutureOr< Either< f(R)) → AsyncEither<L, T> >L, T> -
Available on Either<
L, R> , provided by the EitherAsync extension -
flatMapLeftAsync<
T> (FutureOr< Either< f(L)) → Future<T, R> >Either< T, R> > -
Available on Either<
L, R> , provided by the EitherAsync extension -
fold<
T> (T onLeft(L), T onRight(R)) → T -
override
-
isLeft(
) → bool -
inherited
-
isRight(
) → bool -
inherited
-
map<
T> (T f(R)) → Either< L, T> -
override
-
mapAsync<
T> (FutureOr< T> f(R)) → AsyncEither<L, T> -
Available on Either<
L, R> , provided by the EitherAsync extension -
mapLeft<
L1> (L1 f(L)) → Either< L1, R> -
inherited
-
mapLeftAsync<
T> (FutureOr< T> f(L)) → Future<Either< T, R> > -
Available on Either<
L, R> , provided by the EitherAsync extension -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
wait(
) → AsyncEither< L, R> -
Available on Either<
FutureOr< , provided by the EitherFutureExtension extensionL> , FutureOr<R> >
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override