void undoCommand()

Undo last graphics command

Source

void undoCommand() {
  if (_originalCommands.length > 0) {
    _originalCommands.removeLast();
    _invalidate();
  }
}