withSaturation method

Color withSaturation(
  1. double saturation
)

Implementation

Color withSaturation(double saturation) {
  final hsl = HSLColor.fromColor(this);
  return hsl.withSaturation(saturation).toColor();
}