onBackgroundColor static method
A color that's clearly legible when drawn on backgroundColor
.
Implementation
static Color onBackgroundColor(Color backgroundColor) {
return estimateBrightnessForColor(backgroundColor) == Brightness.light ? ArnaColors.shade32 : ArnaColors.shade243;
}