Color withBlue(int b)

Returns a new color that matches this color with the blue channel replaced with b.

Source

Color withBlue(int b) {
  return new Color.fromARGB(alpha, red, green, b);
}