toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (backgroundColor != null) {
buffer.writeAll(
['"backgroundColor":', jsonEncode(backgroundColor), ','], '');
}
if (borderColor != null) {
buffer.writeAll(['"borderColor":', jsonEncode(borderColor), ','], '');
}
if (borderWidth != null) {
buffer.writeAll(['"borderWidth":', borderWidth, ','], '');
}
if (distance != null) {
buffer.writeAll(['"distance":', distance, ','], '');
}
if (shape != null) {
buffer.writeAll(['"shape":', jsonEncode(shape), ','], '');
}
if (style != null) {
buffer.writeAll(['"style":', jsonEncode(style), ','], '');
}
}