onColor property

Color onColor

This getter returns appropriate contrast color based on a given color. It will return a color chosen according to the brightness of this color.

Implementation

Color get onColor => isLight ? ZetaColorBase.cool.shade90 : ZetaColorBase.white;