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 (cellHeight != null) {
buffer.writeAll(['"cellHeight":', cellHeight, ','], '');
}
if (columns != null) {
buffer.write('"columns":[');
for (var item in columns!) {
buffer.writeAll([jsonEncode(item), ','], '');
}
buffer.write('],');
}
if (enabled != null) {
buffer.writeAll(['"enabled":', enabled, ','], '');
}
}