tint method

Color tint(
  1. double value
)

Implementation

Color tint(double value) {
  if (value <= 0 || value >= 1 || use == Colors.transparent) return use;
  final hsl = HSLColor.fromColor(use);
  return hsl.withLightness((hsl.lightness + value).clamp(0.0, 1.0)).toColor();
}