TaskOption<R>.fromNullable constructor

TaskOption<R>.fromNullable(
  1. R? r
)

If r is null, then return None. Otherwise return Right(r).

Implementation

factory TaskOption.fromNullable(R? r) =>
    Option.fromNullable(r).toTaskOption();