meetsWCAGAA static method

bool meetsWCAGAA(
  1. Color foreground,
  2. Color background, {
  3. bool isLargeText = false,
})

Implementation

static bool meetsWCAGAA(Color foreground, Color background, {bool isLargeText = false}) {
  final ratio = contrastRatio(foreground, background);
  return ratio >= (isLargeText ? minContrastLarge : minContrastNormal);
}