withGreen method
- int g
override
Returns a new color that matches this color with the green channel
replaced with g
(which ranges from 0 to 255).
Out of range values will have unexpected effects.
Implementation
@override
Color withGreen(int g) => _effectiveColor.withGreen(g);