ScreenSizeBreakpoints class
Breakpoints for screen size categories.
Constructors
- ScreenSizeBreakpoints({double xs = 360, double sm = 600, double md = 900, double lg = 1200})
-
Creates screen size breakpoints with custom values.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- lg → double
-
Threshold for extra large screens (default: 1200)
final
- md → double
-
Threshold for large screens (default: 900)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sm → double
-
Threshold for medium screens (default: 600)
final
- xs → double
-
Threshold for small screens (default: 360)
final
Methods
-
getScreenSize(
double width) → ScreenSize - Determines the screen size category based on width.
-
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
- defaults → const ScreenSizeBreakpoints
- Default screen size breakpoints.