DesignWindowSizeClass enum

Material's window size classes, by width in logical pixels.

Inheritance
Available extensions

Values

compact → const DesignWindowSizeClass

Under 600: a phone held upright.

medium → const DesignWindowSizeClass

600 to 840: a tablet upright, a foldable open.

expanded → const DesignWindowSizeClass

840 to 1200: a tablet on its side, a small window.

large → const DesignWindowSizeClass

1200 to 1600: a laptop.

extraLarge → const DesignWindowSizeClass

1600 and wider: a desktop.

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

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

Static Methods

fromWidth(double width) → DesignWindowSizeClass
The class of a window width wide.
of(BuildContext context) → DesignWindowSizeClass
The class of the window context is in (MediaQuery's size); context builds again when the width changes.

Constants

values → const List<DesignWindowSizeClass>
A constant List of the values in this enum, in order of their declaration.