future_or library

Extensions

FlatMapExtension on FutureOr<A>

Functions

fromThrowable<A, B>(FutureOr<A> f(), {required B onSuccess(A a), required B onError(dynamic error, StackTrace stackTrace)}) FutureOr<B>