DeviceType enum
An enumeration representing different types of devices.
Values
- watch → const DeviceType
-
const DeviceType(name: "Watch", width: DeviceBreakpoints.watch, assumedSize: DeviceAssumedSizes.watch, fontScaleFactor: DeviceFontScaleFactors.watch, radiusScaleFactor: DeviceRadiusScaleFact…
- mobile → const DeviceType
-
const DeviceType(name: "Mobile", width: DeviceBreakpoints.mobile, assumedSize: DeviceAssumedSizes.mobile, fontScaleFactor: DeviceFontScaleFactors.mobile, radiusScaleFactor: DeviceRadiusScale…
- tablet → const DeviceType
-
const DeviceType(name: "Tablet", width: DeviceBreakpoints.tablet, assumedSize: DeviceAssumedSizes.tablet, fontScaleFactor: DeviceFontScaleFactors.tablet, radiusScaleFactor: DeviceRadiusScale…
- laptop → const DeviceType
-
const DeviceType(name: "Laptop", width: DeviceBreakpoints.laptop, assumedSize: DeviceAssumedSizes.laptop, fontScaleFactor: DeviceFontScaleFactors.laptop, radiusScaleFactor: DeviceRadiusScale…
- desktop → const DeviceType
-
const DeviceType(name: "Desktop", width: DeviceBreakpoints.desktop, assumedSize: DeviceAssumedSizes.desktop, fontScaleFactor: DeviceFontScaleFactors.desktop, radiusScaleFactor: DeviceRadiusS…
- tv → const DeviceType
-
const DeviceType(name: "TV", width: DeviceBreakpoints.tv, assumedSize: DeviceAssumedSizes.tv, fontScaleFactor: DeviceFontScaleFactors.tv, radiusScaleFactor: DeviceRadiusScaleFactors.tv, size…
Properties
- assumedSize → Size
-
final
- fontScaleFactor → double
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
final
- radiusScaleFactor → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sizeScaleFactor → double
-
final
- spacingScaleFactor → double
-
final
- weightScaleFactor → double
-
final
- width → double
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
DeviceType> - A constant List of the values in this enum, in order of their declaration.