screenAspectRatio property
double
get
screenAspectRatio
Returns the screen's aspect ratio.
Implementation
double get screenAspectRatio => screenWidthInPixels / screenHeightInPixels;
Returns the screen's aspect ratio.
double get screenAspectRatio => screenWidthInPixels / screenHeightInPixels;