handleColorChanged method

void handleColorChanged()

Handles the color changed event.

This method calls the onColorChanged callback and then calls handleUpdateUI.

Implementation

void handleColorChanged() {
  onColorChanged?.call();
  handleUpdateUI();
}