shorterSize property

double get shorterSize

Returns the shorter dimension of the screen.

This is the minimum of width and height, useful for responsive layouts that need to adapt to the smaller screen dimension.

Implementation

double get shorterSize {
  Size s = size;
  return min(s.width, s.height);
}