toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (offsetX != null) {
buffer.writeAll(['"offsetX":', offsetX, ','], '');
}
if (offsetY != null) {
buffer.writeAll(['"offsetY":', offsetY, ','], '');
}
if (x != null) {
buffer.writeAll(['"x":', x, ','], '');
}
if (y != null) {
buffer.writeAll(['"y":', y, ','], '');
}
}