withValues method
- double? alpha,
- double? red,
- double? green,
- double? blue,
- ColorSpace? colorSpace,
override
Returns a new color with the provided components updated.
Each component (alpha
, red
, green
, blue
) represents a
floating-point value; see Color.from for details and examples.
If colorSpace
is provided, and is different than the current color
space, the component values are updated before transforming them to the
provided ColorSpace.
Implementation
@override
Color withValues({
double? alpha,
double? red,
double? green,
double? blue,
ColorSpace? colorSpace,
}) => _effectiveColor.withValues(
alpha: alpha,
red: red,
green: green,
blue: blue,
colorSpace: colorSpace,
);