SliverAppBar constructor Null safety

const SliverAppBar(
  1. {Key? key,
  2. Widget? leading,
  3. 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. bool forceElevated,
  13. Color? backgroundColor,
  14. Color? foregroundColor,
  15. bool primary,
  16. bool? centerTitle,
  17. bool excludeHeaderSemantics,
  18. double? titleSpacing,
  19. double? collapsedHeight,
  20. double? expandedHeight,
  21. bool floating,
  22. bool pinned,
  23. bool snap,
  24. bool stretch,
  25. double stretchTriggerOffset,
  26. ShapeBorder? shape,
  27. double toolbarHeight,
  28. double? leadingWidth,
  29. TextStyle? toolbarTextStyle,
  30. TextStyle? titleTextStyle,
  31. bool forceMaterialTransparency}
)

Implementation

const factory SliverAppBar(
    {final Key? key,
    final Widget? leading,
    final bool automaticallyImplyLeading,
    final Widget? title,
    final List<Widget>? actions,
    final Widget? flexibleSpace,
    final PreferredSizeWidget? bottom,
    final double? elevation,
    final double? scrolledUnderElevation,
    final Color? shadowColor,
    final Color? surfaceTintColor,
    final bool forceElevated,
    final Color? backgroundColor,
    final Color? foregroundColor,
    final bool primary,
    final bool? centerTitle,
    final bool excludeHeaderSemantics,
    final double? titleSpacing,
    final double? collapsedHeight,
    final double? expandedHeight,
    final bool floating,
    final bool pinned,
    final bool snap,
    final bool stretch,
    final double stretchTriggerOffset,
    final ShapeBorder? shape,
    final double toolbarHeight,
    final double? leadingWidth,
    final TextStyle? toolbarTextStyle,
    final TextStyle? titleTextStyle,
    final bool forceMaterialTransparency}) = _$SliverAppBar;