MacosWindowScope constructor
const
MacosWindowScope({
- Key? key,
- required BoxConstraints constraints,
- required Widget child,
- required bool isSidebarShown,
- required bool isEndSidebarShown,
- required VoidCallback sidebarToggler,
- 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;