WindowWidthSizeClass enum
Defines a set of standardized window size breakpoints for width, based on Material Design 3 guidelines for adaptive layouts.
- Inheritance
- Implemented types
- Available extensions
Values
- compact → const WindowWidthSizeClass
-
Width is below 600dp. Represents 99.96% of phones in portrait mode.
- medium → const WindowWidthSizeClass
-
Width is between 600dp and 839dp (inclusive). Represents 93.73% of tablets in portrait mode.
- expanded → const WindowWidthSizeClass
-
Width is between 840dp and 1199dp (inclusive). Represents 97.22% of tablets in landscape mode.
- large → const WindowWidthSizeClass
-
Width is between 1200dp and 1599dp (inclusive). Typically used for large tablet displays.
- extraLarge → const WindowWidthSizeClass
-
Width is 1600dp or larger. Typically used for desktop displays.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
compareTo(
WindowWidthSizeClass other) → int -
Compares this object to another object.
override
-
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 <(
WindowWidthSizeClass other) → bool -
Available on WindowWidthSizeClass, provided by the WindowWidthComparison extension
-
operator <=(
WindowWidthSizeClass other) → bool -
Available on WindowWidthSizeClass, provided by the WindowWidthComparison extension
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator >(
WindowWidthSizeClass other) → bool -
Available on WindowWidthSizeClass, provided by the WindowWidthComparison extension
-
operator >=(
WindowWidthSizeClass other) → bool -
Available on WindowWidthSizeClass, provided by the WindowWidthComparison extension
Constants
-
values
→ const List<
WindowWidthSizeClass> - A constant List of the values in this enum, in order of their declaration.