withBlue method

  1. @override
Colour withBlue(
  1. int blue
)
override

Returns a new color that matches this color with the blue channel replaced with b (which ranges from 0 to 255).

Out of range values will have unexpected effects.

Implementation

@override
Colour withBlue(int blue) {
  return Colour(alpha: alpha, red: red, green: green, blue: blue);
}