withParam<TIn> static method

AsyncRelayCommand<TIn> withParam<TIn>(
  1. Future<void> execute(
    1. TIn
    )
)
override

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

Implementation

static AsyncRelayCommand<TIn> withParam<TIn>(Future<void> Function(TIn) execute) {
  return _AsyncRelayCommandImplWithParams<TIn>(execute);
}