withShadeCode method

Color withShadeCode(
  1. int shadeCode
)

Implementation

Color withShadeCode(int shadeCode) {
  final hsl = HSLColor.fromColor(this);
  final lighter = hsl.withLightness((hsl.lightness + shadeCode / 900) % 1);
  return lighter.toColor();
}