ReaderTaskEither<E, L, R>.fromNullable constructor
ReaderTaskEither<E, L, R>.fromNullable (
- R? r,
- L onNull()
If r
is null
, then return the result of onNull
in Left.
Otherwise return Right(r)
.
Implementation
factory ReaderTaskEither.fromNullable(R? r, L Function() onNull) =>
ReaderTaskEither(
(_) async => Either.fromNullable(r, onNull),
);