handleResize method

void handleResize()

Handles the resize event.

This method calls the onResize callback and then calls handleUpdateUI.

Implementation

void handleResize() {
  onResize?.call();
  handleUpdateUI();
}