Color darken([double? amount]) { final hsl = HSLColor.fromColor(this); final hslDark = hsl.withLightness( amount != null ? (hsl.lightness - amount).clamp(0.0, 1.0) : 0.25); return hslDark.toColor(); }