toCss method
Converts the stop to its CSS string representation.
Implementation
String toCss() {
if (offset != null) {
return '${color.toCss()} ${offset!.toCss()}';
}
return color.toCss();
}
Converts the stop to its CSS string representation.
String toCss() {
if (offset != null) {
return '${color.toCss()} ${offset!.toCss()}';
}
return color.toCss();
}