withParam<TIn> static method

RelayCommand<TIn> withParam<TIn>(
  1. void execute(
    1. TIn
    )
)

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

Implementation

static RelayCommand<TIn> withParam<TIn>(void Function(TIn) execute) {
  return _RelayCommandImplWithParams<TIn>(execute);
}