handleToggleFill method

void handleToggleFill(
  1. bool fill
)

Handles the toggle fill event.

This method calls the onToggleFill callback with the provided fill and then calls handleUpdateUI.

Implementation

void handleToggleFill(bool fill) {
  onToggleFill?.call(fill);
  handleUpdateUI();
}