rgb function

Color rgb(
  1. int r,
  2. int g,
  3. int b
)

Returns Color.

r, g and b must not exceed 255.

..backgroundColor(rgb(34, 29, 189));

Implementation

Color rgb(int r, int g, int b) {
  return Color.fromRGBO(r, g, b, 1.0);
}