onBackgroundColor static method

Color onBackgroundColor(
  1. Color backgroundColor
)

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;
}