AppBarTheme constructor Null safety

const AppBarTheme(
  1. {@Deprecated('This property is no longer used, please use systemOverlayStyle instead. ' 'This feature was deprecated after v2.4.0-0.0.pre.') Brightness? brightness,
  2. Color? color,
  3. Color? backgroundColor,
  4. Color? foregroundColor,
  5. double? elevation,
  6. double? scrolledUnderElevation,
  7. Color? shadowColor,
  8. Color? surfaceTintColor,
  9. ShapeBorder? shape,
  10. IconThemeData? iconTheme,
  11. IconThemeData? actionsIconTheme,
  12. @Deprecated('This property is no longer used, please use toolbarTextStyle and titleTextStyle instead. ' 'This feature was deprecated after v2.4.0-0.0.pre.') TextTheme? textTheme,
  13. bool? centerTitle,
  14. double? titleSpacing,
  15. double? toolbarHeight,
  16. TextStyle? toolbarTextStyle,
  17. TextStyle? titleTextStyle,
  18. SystemUiOverlayStyle? systemOverlayStyle,
  19. @Deprecated('This property is obsolete and is false by default. ' 'This feature was deprecated after v2.4.0-0.0.pre.') bool? backwardsCompatibility}
)

Creates a theme that can be used for ThemeData.appBarTheme.

Implementation

const AppBarTheme({
  @Deprecated(
    'This property is no longer used, please use systemOverlayStyle instead. '
    'This feature was deprecated after v2.4.0-0.0.pre.',
  )
  this.brightness,
  Color? color,
  Color? backgroundColor,
  this.foregroundColor,
  this.elevation,
  this.scrolledUnderElevation,
  this.shadowColor,
  this.surfaceTintColor,
  this.shape,
  this.iconTheme,
  this.actionsIconTheme,
  @Deprecated(
    'This property is no longer used, please use toolbarTextStyle and titleTextStyle instead. '
    'This feature was deprecated after v2.4.0-0.0.pre.',
  )
  this.textTheme,
  this.centerTitle,
  this.titleSpacing,
  this.toolbarHeight,
  this.toolbarTextStyle,
  this.titleTextStyle,
  this.systemOverlayStyle,
  @Deprecated(
    'This property is obsolete and is false by default. '
    'This feature was deprecated after v2.4.0-0.0.pre.',
  )
  this.backwardsCompatibility,
}) : assert(
       color == null || backgroundColor == null,
       'The color and backgroundColor parameters mean the same thing. Only specify one.',
     ),
     backgroundColor = backgroundColor ?? color;