EitherBuilder<L, R> class final

Constructors

EitherBuilder(Either<L, R> _either)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bimap<L2, R2>({required R2 right(R), required L2 left(L)}) EitherBuilder<L2, R2>
build() Either<L, R>
flatMap<R2>(Either<L, R2> f(R)) EitherBuilder<L, R2>
map<R2>(R2 right(R)) EitherBuilder<L, R2>
mapLeft<L2>(L2 left(L)) EitherBuilder<L2, R>
match<A>({required A right(R), required A left(L)}) → A
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

Static Methods

left<L, R>(L value) EitherBuilder<L, R>