primaryContrastingColor property

  1. @override
Color get primaryContrastingColor
override

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:

Implementation

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