withGreen method

  1. @override
Colour withGreen(
  1. int green
)
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
Colour withGreen(int green) =>
    Colour(alpha: alpha, red: red, green: green, blue: blue);