accent static method

Color accent(
  1. Color color
)

Brighter, slightly hue-shifted accent used as a gradient end-stop.

Implementation

static Color accent(Color color) {
  final hsl = HSLColor.fromColor(color);
  return hsl
      .withHue((hsl.hue + 12) % 360)
      .withSaturation((hsl.saturation + 0.05).clamp(0.0, 1.0))
      .withLightness((hsl.lightness + 0.12).clamp(0.0, 1.0))
      .toColor();
}