lighten static method
Converts the given color as bright as the given percent and return it.
Implementation
static Color lighten(Color color, double percent) {
return Color.fromARGB(
color.alpha,
color.red + ((255 - color.red) * percent).round(),
color.green + ((255 - color.green) * percent).round(),
color.blue + ((255 - color.blue) * percent).round()
);
}