exec method

FutureOr<void> exec(
  1. P1 p1
)

Executes the command function commandFunc.

Implementation

FutureOr<void> exec(P1 p1) {
  assert(commandFunc != null);
  return _doExecute(() => commandFunc!(p1));
}