shadedColor method
Returns a color that is a shade of this color.
shade must be between 0.0 (no change) and 1.0 (full shade).
brightness can be either Brightness.light or Brightness.dark.
Implementation
Color shadedColor({
double shade = .1,
Brightness brightness = Brightness.light,
}) {
if (brightness == Brightness.light) {
return darker(shade);
} else {
return lighter(shade);
}
}