Rgb constructor

Rgb(
  1. num r,
  2. num g,
  3. num b, [
  4. num opacity = 1,
])

Constructs a new RGB color.

The channel values are exposed as r, g and b properties on the returned instance.

Implementation

Rgb(this.r, this.g, this.b, [super.opacity]);