PrismBreakpoint class
A set of well-known width thresholds that map screen sizes to semantic window classes.
Mirrors Material Design 3's canonical breakpoints so apps feel native on every device class. A breakpoint value is the minimum width required to reach that class.
- Annotations
Constructors
- PrismBreakpoint(double minWidth)
-
Creates a breakpoint at
minWidth.const
Properties
Methods
-
isSameClass(
PrismBreakpoint other) → bool -
Returns true if this breakpoint is exactly
other. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
resolve(
double width, {double compact = 0, double mediumWidth = 600, double expanded = 840, double extraLarge = 1200}) → PrismBreakpoint -
Resolves which window class
widthfalls into, using token-driven thresholds when they are supplied. -
resolveStandard(
double width) → PrismBreakpoint -
Resolves which built-in class
widthfalls into.
Constants
-
all
→ const List<
PrismBreakpoint> - All built-in breakpoints in ascending order.
- compact → const PrismBreakpoint
- Compact window: phones in portrait. Width below 600.
- expanded → const PrismBreakpoint
- Expanded window: tablets, laptops, desktops. Width 840–1199.
- extraLarge → const PrismBreakpoint
- Extra-large window: large desktops, foldables opened. Width 1200+.
- medium → const PrismBreakpoint
- Medium window: phones in landscape, small tablets. Width 600–839.