errorInput<TInput extends Object> method

StatefulFuture<T> errorInput<TInput extends Object>(
  1. TInput toInput(
    1. Object error
    )
)

Registers a callback that converts the future's error into an input for the logic block.

Implementation

StatefulFuture<T> errorInput<TInput extends Object>(
  TInput Function(Object error) toInput,
) {
  _onError = (error) => _inputIfRunning<TInput>(toInput(error));
  return this;
}