backwardsCompatibility property Null safety

bool? backwardsCompatibility
@Deprecated('This property is obsolete and is false by default. ' 'This feature was deprecated after v2.4.0-0.0.pre.'), final

This property is deprecated and is false by default.

If true, preserves the original defaults for the backgroundColor, iconTheme, actionsIconTheme properties, and the original use of the textTheme and brightness properties.

If this property is null, then AppBarTheme.backwardsCompatibility of ThemeData.appBarTheme is used. If that is also null, the default value is false.

This is a temporary property and it has been deprecated. App developers are encouraged to opt into the new features by leaving it default (false) and using the foregroundColor and systemOverlayStyle properties as needed.

Implementation

@Deprecated(
  'This property is obsolete and is false by default. '
  'This feature was deprecated after v2.4.0-0.0.pre.',
)
final bool? backwardsCompatibility;