toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (borderColor != null) {
buffer.writeAll(['"borderColor":', jsonEncode(borderColor), ','], '');
}
if (borderWidth != null) {
buffer.writeAll(['"borderWidth":', borderWidth, ','], '');
}
if (padding != null) {
buffer.write('"padding":[');
for (var item in padding!) {
buffer.writeAll([jsonEncode(item), ','], '');
}
buffer.write('],');
}
if (relativeTo != null) {
buffer.writeAll(['"relativeTo":', jsonEncode(relativeTo), ','], '');
}
if (units != null) {
buffer.writeAll(['"units":', jsonEncode(units), ','], '');
}
}