WindowClassBreakpoints class

The breakpoints that turn a window size into a WindowClass.

Defaults follow Material 3. Pass custom values to TwinScreenScope to change them for the whole app.

Annotations

Constructors

WindowClassBreakpoints({double mediumWidth = 600, double expandedWidth = 840, double mediumHeight = 480, double expandedHeight = 900})
Creates breakpoints. Each value is the smallest size, in logical pixels, that belongs to that class.
const

Properties

expandedHeight → double
The smallest height that counts as WindowHeightClass.expanded.
final
expandedWidth → double
The smallest width that counts as WindowWidthClass.expanded.
final
hashCode → int
The hash code for this object.
no setteroverride
mediumHeight → double
The smallest height that counts as WindowHeightClass.medium.
final
mediumWidth → double
The smallest width that counts as WindowWidthClass.medium.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

classOf(Size size) → WindowClass
The window class for a window of size.
heightClassOf(double height) → WindowHeightClass
The height class for a window height tall.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override
widthClassOf(double width) → WindowWidthClass
The width class for a window width wide.

Operators

operator ==(Object other) → bool
The equality operator.
override

Constants

material3 → const WindowClassBreakpoints
The Material 3 breakpoints: 600 / 840 wide and 480 / 900 tall.