AppLayout enum

Inheritance
Available extensions

Values

WIDE → const AppLayout
NARROW → const AppLayout
MOBILE_HORIZONTAL → const AppLayout
MOBILE → const AppLayout

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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 ==(Object other) bool
The equality operator.
inherited

Static Methods

currentScreenLayout({LayoutBreakpoints? breakpoints}) AppLayout
Resolves the current layout from the primary platform display. Prefer AppLayout.of inside widget code so an embedded sub-window doesn't pick up the host window's dimensions.
fromScreenCalculator(ScreenCalculator calculator, {LayoutBreakpoints? breakpoints}) AppLayout
Classifies a ScreenCalculator into an AppLayout.
fromSize(Size size, {LayoutBreakpoints? breakpoints}) AppLayout
Resolves a layout from a raw Size.
of(BuildContext context, {LayoutBreakpoints? breakpoints}) AppLayout
Resolves the current layout from the MediaQuery visible at context. This is the recommended entry point inside any widget tree.

Constants

values → const List<AppLayout>
A constant List of the values in this enum, in order of their declaration.