setScreenSize method

void setScreenSize(
  1. Size size
)

Sets the screen size used for viewport calculations.

This is typically called internally by the editor widget when the layout changes. You generally should not call this manually.

Parameters:

  • size: The new screen size

Implementation

void setScreenSize(Size size) {
  runInAction(() {
    _screenSize.value = size;
  });
}