ScreenSize enum
Screen size categories for responsive layouts.
These provide finer granularity than device types for responsive design.
- Inheritance
- Available extensions
Values
- xs → const ScreenSize
-
Extra small screens (< 360px width)
- sm → const ScreenSize
-
Small screens (360-600px width)
- md → const ScreenSize
-
Medium screens (600-900px width)
- lg → const ScreenSize
-
Large screens (900-1200px width)
- xl → const ScreenSize
-
Extra large screens (> 1200px width)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- index → int
-
Available on ScreenSize, provided by the ScreenSizeExtension extension
Returns the index (0-4) for this screen sizeno setter - isLarge → bool
-
Available on ScreenSize, provided by the ScreenSizeExtension extension
Returns true if this size is large (lg or xl)no setter - isMedium → bool
-
Available on ScreenSize, provided by the ScreenSizeExtension extension
Returns true if this size is mediumno setter - isSmall → bool
-
Available on ScreenSize, provided by the ScreenSizeExtension extension
Returns true if this size is small (xs or sm)no setter - 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 <(
ScreenSize other) → bool -
Available on ScreenSize, provided by the ScreenSizeExtension extension
-
operator <=(
ScreenSize other) → bool -
Available on ScreenSize, provided by the ScreenSizeExtension extension
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator >(
ScreenSize other) → bool -
Available on ScreenSize, provided by the ScreenSizeExtension extension
-
operator >=(
ScreenSize other) → bool -
Available on ScreenSize, provided by the ScreenSizeExtension extension
Comparison operators
Constants
-
values
→ const List<
ScreenSize> - A constant List of the values in this enum, in order of their declaration.