maxScreenSize property
double
get
maxScreenSize
Returns the maximum screen size (either width or height). This property returns the larger dimension between the width and height of the screen.
Implementation
double get maxScreenSize => size.longestSide;