handleRatioSelected method
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();
}