toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (borderColor != null) {
buffer.writeAll(['"borderColor":', jsonEncode(borderColor), ','], '');
}
if (borderRadius != null) {
buffer.writeAll(['"borderRadius":', borderRadius, ','], '');
}
if (borderWidth != null) {
buffer.writeAll(['"borderWidth":', borderWidth, ','], '');
}
if (color != null) {
buffer.writeAll(['"color":', jsonEncode(color), ','], '');
}
if (height != null) {
buffer.writeAll(['"height":', height, ','], '');
}
if (width != null) {
buffer.writeAll(['"width":', jsonEncode(width), ','], '');
}
}