handleFilterFactorChange method
Handles the filter factor change event.
This method calls the onFilterFactorChange callback with the provided newFactor
and then calls handleUpdateUI.
Implementation
void handleFilterFactorChange(double newFactor) {
onFilterFactorChange?.call(newFactor);
handleUpdateUI();
}