formatRgb method

String formatRgb()

Returns a string representing this color according to the CSS Object Model specification, such as rgb(247, 234, 186) or rgba(247, 234, 186, 0.2).

If this color is not displayable, a suitable displayable color is returned instead by clamping RGB channel values to the interval [0, 255].

Implementation

String formatRgb() => rgb().formatRgb();