OptionMatchAsyncX<T extends Object> extension

Collection of methods to work with Future on OptionMatchMixin

on

Methods

matchAsync<R>(FutureOr<R> someop(T), FutureOr<R> noneop()) Future<R>
Asynchronously invokes either the someop or the noneop depending on the option.
whenAsync<R>({required FutureOr<R> some(T), required FutureOr<R> none()}) Future<R>
Asynchronously invokes either some or none depending on the option.