mapAsyncJust<K> method
A Method to chain async access to data held by the Maybe. If this
is Nothing
returns Nothing
, if this
is Just
, returns the result of the combiner
method over the value
inside Just
Implementation
FutureOr<Maybe<K>> mapAsyncJust<K>(FutureOr<Maybe<K>> Function(T) combiner) {
return switch (this) {
Nothing<T>() => Nothing<K>(),
Just<T>(:final value) => combiner(value),
};
}