handleScaleEnd method
Handles the end of a scaling gesture.
This method calls the onScaleEnd callback with the provided details
and then calls handleUpdateUI.
Implementation
void handleScaleEnd(ScaleEndDetails details) {
onScaleEnd?.call(details);
handleUpdateUI();
}