kDarken method
Implementation
Color kDarken(double amount) {
assert(amount >= 0 && amount <= 1);
final hsl = HSLColor.fromColor(this);
return hsl
.withLightness(
clampDouble(hsl.lightness * amount, 0.0, 1.0),
)
.toColor();
}