deviceType property
Determines the DeviceType from some box constraints.
Typically used within a LayoutBuilder.
Returns based on the constrains locally to the widget, rather than the whole screen.
Implementation
DeviceType get deviceType {
return _resolveDeviceType(maxWidth);
}