withParam<TIn, TOut> static method

AsyncTwoWayCommand<TIn, TOut> withParam<TIn, TOut>(
  1. Future<TOut> execute(
    1. TIn
    )
)
override

Initializes a new instance of AsyncTwoWayCommand that needs a parameter TIn when executing.

Returns a value TOut.

Implementation

static AsyncTwoWayCommand<TIn, TOut> withParam<TIn, TOut>(Future<TOut> Function(TIn) execute) {
  return _AsyncTwoWayCommandImplWithParams<TIn, TOut>(execute);
}