device property
DeviceSize
get
device
returns DeviceSize
Implementation
DeviceSize get device {
if (this.maxWidth >= desktopBreakpointGlobal) {
return DeviceSize.desktop;
}
if (this.maxWidth >= tabletBreakpointGlobal) {
return DeviceSize.tablet;
}
return DeviceSize.mobile;
}