primaryContrastingColor property Null safety
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:
- MaterialBasedCupertinoThemeData, a CupertinoThemeData that defers primaryContrastingColor to its Material Theme parent if it's unspecified.
Implementation
@override
Color get primaryContrastingColor => super.primaryContrastingColor ?? _defaults.primaryContrastingColor;