IOOption<R>.fromNullable constructor

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

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

Implementation

factory IOOption.fromNullable(R? r) => Option.fromNullable(r).toIOOption();