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