toSvgString method
Returns a CSS and SVG compatible color string.
Implementation
String toSvgString() {
final hex = toARGB32().toRadixString(16);
return "#${hex.substring(2)}${hex.substring(0, 2)}";
}
Returns a CSS and SVG compatible color string.
String toSvgString() {
final hex = toARGB32().toRadixString(16);
return "#${hex.substring(2)}${hex.substring(0, 2)}";
}