ActiveLayoutInfo constructor

const ActiveLayoutInfo({
  1. required BuildContext context,
  2. required TargetPlatform platform,
  3. required AdaptivePlatform adaptivePlatform,
  4. required Orientation orientation,
  5. required BreakpointId activeBreakpointId,
  6. required Size screenSize,
  7. required DeviceFormFactor formFactor,
  8. VoidCallback? openLeftDrawer,
  9. VoidCallback? closeLeftDrawer,
  10. VoidCallback? toggleLeftDrawer,
  11. VoidCallback? openRightDrawer,
  12. VoidCallback? closeRightDrawer,
  13. VoidCallback? toggleRightDrawer,
  14. VoidCallback? openLeftPane,
  15. VoidCallback? closeLeftPane,
  16. VoidCallback? toggleLeftPane,
  17. VoidCallback? openRightPane,
  18. VoidCallback? closeRightPane,
  19. 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,
});