deviceType static method
Implementation
static DeviceType deviceType(BuildContext context) {
final width = MediaQuery.of(context).size.width;
if (width >= 1200) return DeviceType.desktop;
if (width >= 600) return DeviceType.tablet;
return DeviceType.phone;
}