toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (cursor != null) {
buffer.writeAll(['"cursor":', jsonEncode(cursor), ','], '');
}
if (fill != null) {
buffer.writeAll(['"fill":', jsonEncode(fill), ','], '');
}
if (stroke != null) {
buffer.writeAll(['"stroke":', jsonEncode(stroke), ','], '');
}
if (strokeWidth != null) {
buffer.writeAll(['"stroke-width":', strokeWidth, ','], '');
}
}