useWhiteForeground function

bool useWhiteForeground(
  1. Color backgroundColor
)

Implementation

bool useWhiteForeground(Color backgroundColor) =>
    1.05 / (backgroundColor.computeLuminance() + 0.05) > 4.5;