MasterDetailScaffold constructor

const MasterDetailScaffold({
  1. required WidgetBuilder masterPaneBuilder,
  2. required double masterPaneWidth,
  3. required PreferredSizeWidget detailsAppBar,
  4. required WidgetBuilder detailsPaneBuilder,
  5. required PreferredSizeWidget initialAppBar,
  6. required String initialRoute,
  7. required String detailsRoute,
  8. required DetailsPaneRouteChangedCallback onDetailsPaneRouteChanged,
  9. WidgetBuilder? initialDetailsPaneBuilder,
  10. double? twoPanesWidthBreakpoint,
  11. MasterDetailPageRouteBuilder? pageRouteBuilder,
  12. Widget? floatingActionButton,
  13. FloatingActionButtonLocation? floatingActionButtonLocation,
  14. FloatingActionButtonAnimator? floatingActionButtonAnimator,
  15. List<Widget>? persistentFooterButtons,
  16. Widget? drawer,
  17. Widget? endDrawer,
  18. Widget? bottomNavigationBar,
  19. Widget? bottomSheet,
  20. Color? backgroundColor,
  21. bool? resizeToAvoidBottomInset,
  22. bool primary = true,
  23. DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start,
  24. bool extendBody = false,
  25. bool extendBodyBehindAppBar = false,
  26. Color? drawerScrimColor,
  27. double? drawerEdgeDragWidth,
  28. Key? key,
})

Implementation

const MasterDetailScaffold(
    {required this.masterPaneBuilder,
    required this.masterPaneWidth,
    required this.detailsAppBar,
    required this.detailsPaneBuilder,
    required this.initialAppBar,
    required this.initialRoute,
    required this.detailsRoute,
    required this.onDetailsPaneRouteChanged,
    this.initialDetailsPaneBuilder,
    this.twoPanesWidthBreakpoint,
    this.pageRouteBuilder,
    this.floatingActionButton,
    this.floatingActionButtonLocation,
    this.floatingActionButtonAnimator,
    this.persistentFooterButtons,
    this.drawer,
    this.endDrawer,
    this.bottomNavigationBar,
    this.bottomSheet,
    this.backgroundColor,
    this.resizeToAvoidBottomInset,
    this.primary = true,
    this.drawerDragStartBehavior = DragStartBehavior.start,
    this.extendBody = false,
    this.extendBodyBehindAppBar = false,
    this.drawerScrimColor,
    this.drawerEdgeDragWidth,
    Key? key})
    : assert(twoPanesWidthBreakpoint != null && twoPanesWidthBreakpoint > 0),
      super(key: key);