isBright function

bool isBright(
  1. Color color, {
  2. double argBrightness = 0.8,
})

Implementation

bool isBright(Color color, {double argBrightness = 0.8}) {
  final brightness = color.computeLuminance();
  return brightness > argBrightness;
}