exec method

FutureOr<void> exec(
  1. P1 p1,
  2. P2 p2
)

Executes the command function commandFunc.

Implementation

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