OptionMatchAsyncX<T extends Object> extension
Collection of methods to work with Future on OptionMatchMixin
Methods
-
matchAsync<
R> (FutureOr< R> someop(T), FutureOr<R> noneop()) → Future<R> -
Asynchronously invokes either the
someop
or thenoneop
depending on the option. -
whenAsync<
R> ({required FutureOr< R> some(T), required FutureOr<R> none()}) → Future<R> -
Asynchronously invokes either
some
ornone
depending on the option.