menu
either_dart package
documentation
either.dart
Either<L, R>
swap method
swap method
dark_mode
light_mode
swap
method
Either
<
R
,
L
>
swap
(
)
Swap
Left
and
Right
Implementation
Either<R, L> swap() => fold((left) => Right(left), (right) => Left(right));
either_dart package
documentation
either
Either<L, R>
swap method
Either class