colorTint function
Tints a single Color and returns the new tinted value.
Implementation
Color colorTint(Color color, int i) => Color.rgb(
(color.red + (255 - color.red) * i * 0.1).round(),
(color.green + (255 - color.green) * i * 0.1).round(),
(color.blue + (255 - color.blue) * i * 0.1).round(),
);