colorTint function

Color colorTint(
  1. Color color,
  2. int i
)

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(),
    );