ActiveLayoutInfo class

Holds information about the current layout state, passed to slot builders.

Annotations

Constructors

ActiveLayoutInfo({required BuildContext context, required TargetPlatform platform, required AdaptivePlatform adaptivePlatform, required Orientation orientation, required BreakpointId activeBreakpointId, required Size screenSize, required DeviceFormFactor formFactor, VoidCallback? openLeftDrawer, VoidCallback? closeLeftDrawer, VoidCallback? toggleLeftDrawer, VoidCallback? openRightDrawer, VoidCallback? closeRightDrawer, VoidCallback? toggleRightDrawer, VoidCallback? openLeftPane, VoidCallback? closeLeftPane, VoidCallback? toggleLeftPane, VoidCallback? openRightPane, VoidCallback? closeRightPane, VoidCallback? toggleRightPane})
const

Properties

activeBreakpointId BreakpointId
The identifier of the currently active breakpoint.
final
adaptivePlatform AdaptivePlatform
The current adaptive platform (e.g., Android, iOS, Web).
final
closeLeftDrawer VoidCallback?
final
closeLeftPane VoidCallback?
final
closeRightDrawer VoidCallback?
final
closeRightPane VoidCallback?
final
context BuildContext
The current build context.
final
formFactor DeviceFormFactor
The determined device form factor (e.g., phone, tablet, desktop).
final
hashCode int
The hash code for this object.
no setteroverride
openLeftDrawer VoidCallback?
Callbacks for drawer/pane control
final
openLeftPane VoidCallback?
For Cupertino, we might use specific terms like "Pane" if the behavior is distinct
final
openRightDrawer VoidCallback?
final
openRightPane VoidCallback?
final
orientation Orientation
The current screen orientation (e.g., portrait, landscape).
final
platform TargetPlatform
The current target platform (e.g., Android, iOS).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenSize Size
The current screen size.
final
toggleLeftDrawer VoidCallback?
final
toggleLeftPane VoidCallback?
final
toggleRightDrawer VoidCallback?
final
toggleRightPane VoidCallback?
final

Methods

isLargerOrEqualTo(BreakpointId other) bool
Checks if the current active breakpoint is larger than or equal to the other breakpoint.
isLargerThan(BreakpointId other) bool
Checks if the current active breakpoint is larger than the other breakpoint.
isSmallerOrEqualTo(BreakpointId other) bool
Checks if the current active breakpoint is smaller than or equal to the other breakpoint.
isSmallerThan(BreakpointId other) bool
Checks if the current active breakpoint is smaller than the other breakpoint.
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.
override