void addCommand(GraphicsCommand command)

Add a custom graphics command

Source

void addCommand(GraphicsCommand command) {
  command._setGraphics(this);
  _originalCommands.add(command);
  _invalidate();
}