chromeEmphasis property

Color get chromeEmphasis

The emphasised counterpart of chromeForeground (the lock badge's flash): displayText, or black / white on the background.

Implementation

Color get chromeEmphasis => displayFace == null
    ? displayText
    : (background.computeLuminance() > 0.179
          ? const Color(0xFF000000)
          : const Color(0xFFFFFFFF));