lighten method

Color lighten(
  1. double amount
)

Implementation

Color lighten(double amount) {
  final hsl = HSLColor.fromColor(this);
  final changed = hsl.withLightness(hsl.lightness * amount);
  return changed.toColor();
}