toRGBA method

String toRGBA()

Implementation

String toRGBA() {
  final color = Color(this);
  // ignore: deprecated_member_use — .red/.green/.blue are still the shape
  // the GL-Native side expects in `rgba(r, g, b, a)` strings.
  return "rgba(${color.red}, ${color.green}, ${color.blue}, ${color.alpha / 255})";
}