lighten static method
Lightens a color by a percentage (0-1)
Implementation
static Color lighten(Color color, double amount) {
assert(amount >= 0 && amount <= 1);
final hsl = HSLColor.fromColor(color);
final lightened = hsl.withLightness((hsl.lightness + amount).clamp(0.0, 1.0));
return lightened.toColor();
}