TaskOption<R>.fromNullable constructor
TaskOption<R>.fromNullable (
- R? r
If r
is null
, then return None.
Otherwise return Right(r)
.
Implementation
factory TaskOption.fromNullable(R? r) =>
Option.fromNullable(r).toTaskOption();