minScreenSize property
double
get
minScreenSize
Returns the minimum screen size (either width or height). This property returns the smaller dimension between the width and height of the screen.
Implementation
double get minScreenSize => size.shortestSide;