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