withBlack static method

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

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