meets static method

bool meets(
  1. Color foreground,
  2. Color background, {
  3. double minimum = minText,
})

Whether foreground on background reaches minimum (default minText).

Implementation

static bool meets(
  Color foreground,
  Color background, {
  double minimum = minText,
}) => ratio(foreground, background) >= minimum;