toRGBA method

String toRGBA()

Implementation

String toRGBA() {
  final color = Color(this);
  final red = _toByte(color.r);
  final green = _toByte(color.g);
  final blue = _toByte(color.b);
  return "rgba($red, $green, $blue, ${color.a})";
}