MacosWindowScope constructor

const MacosWindowScope({
  1. Key? key,
  2. required BoxConstraints constraints,
  3. required Widget child,
  4. required bool isSidebarShown,
  5. required bool isEndSidebarShown,
  6. required VoidCallback sidebarToggler,
  7. required VoidCallback endSidebarToggler,
})

Creates a widget that manages the layout of the MacosWindow.

ResizablePane and ContentArea are other widgets that depend on the MacosWindowScope for layout.

The constraints, contentAreaWidth, child, valueNotifier and _scaffoldState arguments are required and must not be null.

Implementation

const MacosWindowScope({
  super.key,
  required this.constraints,
  required super.child,
  required this.isSidebarShown,
  required this.isEndSidebarShown,
  required VoidCallback sidebarToggler,
  required VoidCallback endSidebarToggler,
})  : _sidebarToggler = sidebarToggler,
      _endSidebarToggler = endSidebarToggler;