onScreenSizeChanged method

void onScreenSizeChanged(
  1. Size screenSize
)

Implementation

void onScreenSizeChanged(Size screenSize) {
  if (screenSize.shortestSide == state.screenSize.shortestSide) return;
  emit(state.copyWith(screenSize: screenSize));
}