setMode method

void setMode(
  1. PaintModeE mode
)

Sets the painting mode to the specified mode and notifies listeners.

Implementation

void setMode(PaintModeE mode) {
  _mode = mode;
  notifyListeners();
}