withLightness method

Color withLightness(
  1. double percentage
)

Applies lightness percentage to color.

Implementation

Color withLightness(double percentage) {
  final HSLColor hslColor = HSLColor.fromColor(this);

  return hslColor.withLightness(percentage).toColor();
}