Sliver.appBarMedium constructor Null safety

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

Implementation

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