IOEither<L, R>.fromNullable constructor
IOEither<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 IOEither.fromNullable(R? r, L Function() onNull) =>
Either.fromNullable(r, onNull).toIOEither();