shadeColor function Null safety

Color shadeColor(
  1. Color color,
  2. double factor
)

Implementation

Color shadeColor(Color color, double factor) => Color.fromRGBO(
    shadeValue(color.red, factor),
    shadeValue(color.green, factor),
    shadeValue(color.blue, factor),
    1);