whichForegroundColor function

Color whichForegroundColor(
  1. Color backgroundColor, {
  2. double bias = 0.0,
})

Supply a color depending on the provided background color.

Implementation

Color whichForegroundColor(Color backgroundColor, {double bias = 0.0}) =>
    useWhiteForeground(backgroundColor, bias: bias)
        ? Colors.white
        : Colors.black;