AdvancedAsyncResultExtension<S> extension
Extension on Future<Result<S>> to enable fluent, asynchronous functional chaining.
This prevents nested code structures (callback hell) when combining multiple asynchronous operations that return a Result.
Methods
-
asyncFlatMap<
T> (FutureOr< Result< transform(S value)) → Future<T> >Result< T> > -
Available on Future<
Chains another operation that returns a FutureOr<Result> sequentially.Result< , provided by the AdvancedAsyncResultExtension extensionS> > -
asyncMap<
T> (FutureOr< T> transform(S value)) → Future<Result< T> > -
Available on Future<
Transforms the successful value inside the Result asynchronously.Result< , provided by the AdvancedAsyncResultExtension extensionS> >