withWhite static method

Color withWhite(
  1. Color color,
  2. double factor
)

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);