withBlack method
⬛ With Black
Color.withBlack(int subtract)
// Darkens Color's RGB values by `subtract` (result >= 0)
Implementation
Color withBlack(int subtract) => Color.fromARGB(
this.alpha,
(this.red - subtract).clamp(0, 255),
(this.green - subtract).clamp(0, 255),
(this.blue - subtract).clamp(0, 255),
);