exec method

FutureOr<void> exec()

Executes the command function commandFunc.

Implementation

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