addCmd method

void addCmd(
  1. Cmd? cmd
)

Adds a command to pendingCmds if non-null.

Implementation

void addCmd(Cmd? cmd) {
  if (cmd != null) pendingCmds.add(cmd);
}