effectiveType property
DeviceType
get
effectiveType
type, or, without one, the kind size suggests: a small square is
a watch, 600 dp or more across a tablet, anything else a phone.
OutputLayout.fastlane files Android screenshots by it.
Implementation
DeviceType get effectiveType {
if (type case final type?) return type;
final shortest = size.shortestSide;
if (size.width == size.height && shortest < 400) return DeviceType.wear;
return shortest >= 600 ? DeviceType.tablet : DeviceType.phone;
}