AppBar constructor Null safety

const AppBar(
  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. ShapeBorder? shape,
  13. Color? backgroundColor,
  14. Color? foregroundColor,
  15. bool primary,
  16. bool? centerTitle,
  17. bool excludeHeaderSemantics,
  18. double? titleSpacing,
  19. double toolbarOpacity,
  20. double bottomOpacity,
  21. double? toolbarHeight,
  22. double? leadingWidth,
  23. TextStyle? toolbarTextStyle,
  24. TextStyle? titleTextStyle,
  25. bool forceMaterialTransparency}
)

Implementation

const factory AppBar(
    {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 ShapeBorder? shape,
    final Color? backgroundColor,
    final Color? foregroundColor,
    final bool primary,
    final bool? centerTitle,
    final bool excludeHeaderSemantics,
    final double? titleSpacing,
    final double toolbarOpacity,
    final double bottomOpacity,
    final double? toolbarHeight,
    final double? leadingWidth,
    final TextStyle? toolbarTextStyle,
    final TextStyle? titleTextStyle,
    final bool forceMaterialTransparency}) = _$AppBar;