AsyncOperationFailureHandler<T> typedef

AsyncOperationFailureHandler<T> = void Function(AsyncInvocationFailureContext<T> failure)

Callback which called when async operation is failed with error. The parameter is AsyncInvocationFailureContext to handle the error.

Implementation

typedef AsyncOperationFailureHandler<T> = void Function(
  AsyncInvocationFailureContext<T> failure,
);