handleFlip method

void handleFlip(
  1. bool flipX,
  2. bool flipY
)

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