errorInput<TInput extends Object> method
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;
}