windowSize property
Returns the symbolic window size of the device.
Implementation
MobileWindowSize get windowSize {
if (_width < 600.0) {
return MobileWindowSize.xsmall;
}
if (_width < 1024.0) {
return MobileWindowSize.small;
}
if (_width < 1440.0) {
return MobileWindowSize.medium;
}
if (_width < 1920.0) {
return MobileWindowSize.large;
}
return MobileWindowSize.xlarge;
}