tintColor function Null safety

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

Implementation

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