getOrElse method
Convert this TaskOption to a Task.
The task returns a Some when TaskOption returns Some.
Otherwise map the type L
of TaskOption to type R
by calling orElse
.
Implementation
Task<R> getOrElse(R Function() orElse) =>
Task(() async => (await run()).match(
orElse,
identity,
));