withLuminance method

Color withLuminance(
  1. double luminance
)

Implementation

Color withLuminance(double luminance) {
  final hsl = HSLColor.fromColor(this);
  return hsl.withLightness(luminance).toColor();
}