fromNullable<L, R> function
Create a TaskEither from a nullable value. onNone
is executed if the
given value is null
.
Implementation
TaskEither<L, R> fromNullable<L, R>(
R? value,
L Function() onNone,
) =>
option.fromNullable(value).chain(fromOption(onNone));