toSvgString method

String toSvgString()

Returns a CSS and SVG compatible color string.

Implementation

String toSvgString() {
  final hex = toARGB32().toRadixString(16);
  return "#${hex.substring(2)}${hex.substring(0, 2)}";
}