toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (align != null) {
buffer.writeAll(['"align":', jsonEncode(align), ','], '');
}
if (alignTo != null) {
buffer.writeAll(['"alignTo":', jsonEncode(alignTo), ','], '');
}
if (height != null) {
buffer.writeAll(['"height":', height, ','], '');
}
if (padding != null) {
buffer.writeAll(['"padding":', padding, ','], '');
}
if (style != null) {
buffer.write('"style":{');
for (var item in style!.entries) {
buffer.writeAll(['"', item.key, '":', jsonEncode(item.value), ','], '');
}
buffer.write('},');
}
if (theme != null) {
buffer.writeAll(['"theme":', jsonEncode(theme), ','], '');
}
if (verticalAlign != null) {
buffer.writeAll(['"verticalAlign":', jsonEncode(verticalAlign), ','], '');
}
if (width != null) {
buffer.writeAll(['"width":', width, ','], '');
}
if (x != null) {
buffer.writeAll(['"x":', x, ','], '');
}
}