rgba function

Color rgba(
  1. int r,
  2. int g,
  3. int b, [
  4. double opacity = 1.0,
])

Returns Color.

r, g and b must not exceed 255.

..backgroundColor(rgba(34, 29, 189, 0.7));

Implementation

Color rgba(int r, int g, int b, [double opacity = 1.0]) {
  return Color.fromRGBO(r, g, b, opacity);
}