toTaskEither<L> method
Convert a nullable type T?
to TaskEither using a sync function:
If you want to run an async function onNull
, use toTaskEitherAsync
.
Implementation
TaskEither<L, T> toTaskEither<L>(L Function() onNull) =>
TaskEither.fromNullable(this, onNull);