Widget.scaffold constructor Null safety

const Widget.scaffold(
  1. {Key? key,
  2. PreferredSizeWidget? appBar,
  3. Widget? body,
  4. Widget? floatingActionButton,
  5. FloatingActionButtonLocation? floatingActionButtonLocation,
  6. List<Widget>? persistentFooterButtons,
  7. @Default(Alignment.centerRight) Alignment persistentFooterAlignment,
  8. Widget? drawer,
  9. Widget? endDrawer,
  10. Widget? bottomNavigationBar,
  11. Widget? bottomSheet,
  12. Color? backgroundColor,
  13. bool? resizeToAvoidBottomInset,
  14. @Default(true) bool primary,
  15. @Default(false) bool extendBody,
  16. @Default(false) bool extendBodyBehindAppBar,
  17. Color? drawerScrimColor,
  18. double? drawerEdgeDragWidth,
  19. @Default(true) bool drawerEnableOpenDragGesture,
  20. @Default(true) bool endDrawerEnableOpenDragGesture,
  21. String? restorationId}
)

Implementation

const factory Widget.scaffold({
  Key? key,
  PreferredSizeWidget? appBar,
  Widget? body,
  Widget? floatingActionButton,
  FloatingActionButtonLocation? floatingActionButtonLocation,
  List<Widget>? persistentFooterButtons,
  @Default(Alignment.centerRight) Alignment persistentFooterAlignment,
  Widget? drawer,
  Widget? endDrawer,
  Widget? bottomNavigationBar,
  Widget? bottomSheet,
  Color? backgroundColor,
  bool? resizeToAvoidBottomInset,
  @Default(true) bool primary,
  @Default(false) bool extendBody,
  @Default(false) bool extendBodyBehindAppBar,
  Color? drawerScrimColor,
  double? drawerEdgeDragWidth,
  @Default(true) bool drawerEnableOpenDragGesture,
  @Default(true) bool endDrawerEnableOpenDragGesture,
  String? restorationId,
}) = Scaffold;