ActiveLayoutInfo constructor
const
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,
Implementation
const ActiveLayoutInfo({
required this.context,
required this.platform,
required this.adaptivePlatform,
required this.orientation,
required this.activeBreakpointId,
required this.screenSize,
required this.formFactor, // Added to constructor
// Drawer control callbacks
this.openLeftDrawer,
this.closeLeftDrawer,
this.toggleLeftDrawer,
this.openRightDrawer,
this.closeRightDrawer,
this.toggleRightDrawer,
// Pane control callbacks (can alias to drawer methods if behavior is identical)
this.openLeftPane,
this.closeLeftPane,
this.toggleLeftPane,
this.openRightPane,
this.closeRightPane,
this.toggleRightPane,
});