handleRatioSelected method

void handleRatioSelected(
  1. double value
)

Handles the ratio selected event.

This method calls the onRatioSelected callback with the provided value and then calls handleUpdateUI.

Implementation

void handleRatioSelected(double value) {
  onRatioSelected?.call(value);
  handleUpdateUI();
}