deviceType property

DeviceType deviceType

Determines the DeviceType from the current context.

Returns based on the full size of the screen, so can be inaccurate in certain scenarios.

Implementation

DeviceType get deviceType {
  return _resolveDeviceType(MediaQuery.of(this).size.width);
}