withValues method

  1. @override
Color withValues({
  1. double? alpha,
  2. double? red,
  3. double? green,
  4. double? blue,
  5. ColorSpace? colorSpace,
})
override

Returns a new color that matches this color with the passed in components changed.

Changes to color components will be applied before applying changes to the color space.

Implementation

@override
Color withValues({double? alpha, double? red, double? green, double? blue, ColorSpace? colorSpace}) => _color.withValues(alpha: alpha, red: red, green: green, blue: blue, colorSpace: colorSpace);