darken method

HslColor darken([
  1. int amount = 10
])

Darken the color a given amount, from 0 to 100. Providing 100 will always return black.

Implementation

HslColor darken([int amount = 10]) => copyWith(l: clamp01(l - amount / 100));