lighten method

Color lighten([
  1. double? amount
])

Implementation

Color lighten([double? amount]) {
  final hsl = HSLColor.fromColor(this);
  final hslLight = hsl.withLightness(
      amount != null ? (hsl.lightness + amount).clamp(0.0, 1.0) : 0.75);

  return hslLight.toColor();
}