input<TInput extends Object> method

StatefulFuture<T> input<TInput extends Object>(
  1. TInput toInput(
    1. T value
    )
)

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

Implementation

StatefulFuture<T> input<TInput extends Object>(
  TInput Function(T value) toInput,
) {
  _onSuccess = (value) => _inputIfRunning<TInput>(toInput(value));
  return this;
}