handleFlip method
Handles the flip event.
This method calls the onFlip callback with the provided flipX
and flipY
and then calls handleUpdateUI.
Implementation
void handleFlip(bool flipX, bool flipY) {
onFlip?.call(flipX, flipY);
handleUpdateUI();
}