withBlack static method
A positive factor darkens the color, while a negative factor lightens it.
Clamped to appropriate range. Factor is round()
ed to an int
.
Implementation
static Color withBlack(Color color, double factor) =>
color.withBlack(factor.restricted);