PreferredSizeWidget.appBar constructor Null safety

const PreferredSizeWidget.appBar(
  1. {Key? key,
  2. Widget? leading,
  3. @Default(true) bool automaticallyImplyLeading,
  4. Widget? title,
  5. List<Widget>? actions,
  6. Widget? flexibleSpace,
  7. PreferredSizeWidget? bottom,
  8. double? elevation,
  9. double? scrolledUnderElevation,
  10. Color? shadowColor,
  11. Color? surfaceTintColor,
  12. ShapeBorder? shape,
  13. Color? backgroundColor,
  14. Color? foregroundColor,
  15. @Default(true) bool primary,
  16. bool? centerTitle,
  17. @Default(false) bool excludeHeaderSemantics,
  18. double? titleSpacing,
  19. @Default(1.0) double toolbarOpacity,
  20. @Default(1.0) double bottomOpacity,
  21. double? toolbarHeight,
  22. double? leadingWidth,
  23. TextStyle? toolbarTextStyle,
  24. TextStyle? titleTextStyle,
  25. @Default(false) bool forceMaterialTransparency}
)

Implementation

const factory PreferredSizeWidget.appBar({
  Key? key,
  Widget? leading,
  @Default(true) bool automaticallyImplyLeading,
  Widget? title,
  List<Widget>? actions,
  Widget? flexibleSpace,
  PreferredSizeWidget? bottom,
  double? elevation,
  double? scrolledUnderElevation,
  Color? shadowColor,
  Color? surfaceTintColor,
  ShapeBorder? shape,
  Color? backgroundColor,
  Color? foregroundColor,
  @Default(true) bool primary,
  bool? centerTitle,
  @Default(false) bool excludeHeaderSemantics,
  double? titleSpacing,
  @Default(1.0) double toolbarOpacity,
  @Default(1.0) double bottomOpacity,
  double? toolbarHeight,
  double? leadingWidth,
  TextStyle? toolbarTextStyle,
  TextStyle? titleTextStyle,
  @Default(false) bool forceMaterialTransparency,
}) = AppBar;