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