Scaffold constructor Null safety

const Scaffold(
  1. {Key? key,
  2. PreferredSizeWidget? appBar,
  3. Widget? body,
  4. Widget? floatingActionButton,
  5. FloatingActionButtonLocation? floatingActionButtonLocation,
  6. FloatingActionButtonAnimator? floatingActionButtonAnimator,
  7. List<Widget>? persistentFooterButtons,
  8. Widget? drawer,
  9. DrawerCallback? onDrawerChanged,
  10. Widget? endDrawer,
  11. DrawerCallback? onEndDrawerChanged,
  12. Widget? bottomNavigationBar,
  13. Widget? bottomSheet,
  14. Color? backgroundColor,
  15. bool? resizeToAvoidBottomInset,
  16. bool primary = true,
  17. DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start,
  18. bool extendBody = false,
  19. bool extendBodyBehindAppBar = false,
  20. Color? drawerScrimColor,
  21. double? drawerEdgeDragWidth,
  22. bool drawerEnableOpenDragGesture = true,
  23. bool endDrawerEnableOpenDragGesture = true,
  24. String? restorationId}
)

Creates a visual scaffold for material design widgets.

Implementation

const Scaffold({
  Key? key,
  this.appBar,
  this.body,
  this.floatingActionButton,
  this.floatingActionButtonLocation,
  this.floatingActionButtonAnimator,
  this.persistentFooterButtons,
  this.drawer,
  this.onDrawerChanged,
  this.endDrawer,
  this.onEndDrawerChanged,
  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,
  this.drawerEnableOpenDragGesture = true,
  this.endDrawerEnableOpenDragGesture = true,
  this.restorationId,
}) : assert(primary != null),
     assert(extendBody != null),
     assert(extendBodyBehindAppBar != null),
     assert(drawerDragStartBehavior != null),
     super(key: key);