AsyncSuccessCallback<S, T> typedef

AsyncSuccessCallback<S, T> = Future<T> Function(S value)

Callback type for asynchronous success operations in Result.asyncFold

S is the success value type T is the return type of the callback wrapped in a Future

Implementation

typedef AsyncSuccessCallback<S, T> = Future<T> Function(S value);