TaskEither<L, R>.fromNullable constructor

TaskEither<L, R>.fromNullable(
  1. R? r,
  2. L onNull(
      )
    )

    If r is null, then return the result of onNull in Left. Otherwise return Right(r).

    Implementation

    /// {@endtemplate}
    factory TaskEither.fromNullable(R? r, L Function() onNull) =>
        Either.fromNullable(r, onNull).toTaskEither();