isValidDarkColor function

bool isValidDarkColor(
  1. Color? color
)

Implementation

bool isValidDarkColor(Color? color) {
  if (color == null) {
    return false;
  }
  return color.computeLuminance() <= _lightDarkLuminanceThreshold;
}