ScreenSize enum
Breakpoint according to Material guidelines. Ref: https://m3.material.io/foundations/layout/breakpoints
- Inheritance
- Available extensions
Values
- small → const ScreenSize
-
const ScreenSize(0) - normal → const ScreenSize
-
const ScreenSize(600) - large → const ScreenSize
-
const ScreenSize(840) - larger → const ScreenSize
-
const ScreenSize(1200) - extraLarge → const ScreenSize
-
const ScreenSize(1600)
Properties
- breakpoint → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- isHandyDevice → bool
-
Available on ScreenSize, provided by the ScreenSizeExtension extension
no setter - isLargeDevice → bool
-
Available on ScreenSize, provided by the ScreenSizeExtension extension
no setter - isSecondarySideBarExpandedByDefault → bool
-
Available on ScreenSize, provided by the ScreenSizeExtension extension
no setter - isSmallDevice → bool
-
Available on ScreenSize, provided by the ScreenSizeExtension extension
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
-
buildFor(
{Widget small()?, Widget normal()?, Widget large()?, Widget larger()?, Widget extraLarge()?}) → Widget -
Available on ScreenSize, provided by the ScreenSizeExt extension
-
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
Static Methods
-
fromWidth(
double width) → ScreenSize -
of(
BuildContext context) → ScreenSize
Constants
-
values
→ const List<
ScreenSize> - A constant List of the values in this enum, in order of their declaration.