undoCommand method

void undoCommand()

Undo last graphics command

Implementation

void undoCommand() {
  if (_originalCommands.isNotEmpty) {
    _originalCommands.removeLast();
    _invalidate();
  }
}