Sliver.appBar constructor Null safety

const Sliver.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. @Default(true) bool forceElevated,
  13. Color? backgroundColor,
  14. Color? foregroundColor,
  15. @Default(true) bool primary,
  16. bool? centerTitle,
  17. @Default(true) bool excludeHeaderSemantics,
  18. double? titleSpacing,
  19. double? collapsedHeight,
  20. double? expandedHeight,
  21. @Default(true) bool floating,
  22. @Default(true) bool pinned,
  23. @Default(true) bool snap,
  24. @Default(true) bool stretch,
  25. @Default(100.0) double stretchTriggerOffset,
  26. ShapeBorder? shape,
  27. @Default(56.0) double toolbarHeight,
  28. double? leadingWidth,
  29. TextStyle? toolbarTextStyle,
  30. TextStyle? titleTextStyle,
  31. @Default(true) bool forceMaterialTransparency}
)

Implementation

const factory Sliver.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,
  @Default(true) bool forceElevated,
  Color? backgroundColor,
  Color? foregroundColor,
  @Default(true) bool primary,
  bool? centerTitle,
  @Default(true) bool excludeHeaderSemantics,
  double? titleSpacing,
  double? collapsedHeight,
  double? expandedHeight,
  @Default(true) bool floating,
  @Default(true) bool pinned,
  @Default(true) bool snap,
  @Default(true) bool stretch,
  @Default(100.0) double stretchTriggerOffset,
  ShapeBorder? shape,
  @Default(56.0) double toolbarHeight,
  double? leadingWidth,
  TextStyle? toolbarTextStyle,
  TextStyle? titleTextStyle,
  @Default(true) bool forceMaterialTransparency,
}) = SliverAppBar;