css property

String get css

Returns the CSS representation of the color.

Implementation

String get css => a == 1 ? 'rgb($r, $g, $b)' : 'rgba($r, $g, $b, $a)';