primaryContrastingColor property Null safety

Color primaryContrastingColor

A color that must be easy to see when rendered on a primaryColor background.

For example, this color is used for a CupertinoButton's text and icons when the button's background is primaryColor.

If coming from a Material Theme and unspecified, primaryContrastingColor will be derived from the Material ThemeData's colorScheme.onPrimary.

See also:


Color get primaryContrastingColor => super.primaryContrastingColor ?? _defaults.primaryContrastingColor;