withParam<TIn, TOut> static method

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

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

Returns a value TOut.

Implementation

static TwoWayCommand<TIn, TOut> withParam<TIn, TOut>(TOut Function(TIn) execute) {
  return _TwoWayCommandImplWithParams<TIn, TOut>(execute);
}