toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (align != null) {
buffer.writeAll(['"align":', jsonEncode(align), ','], '');
}
if (allowOverlap != null) {
buffer.writeAll(['"allowOverlap":', allowOverlap, ','], '');
}
if (autoRotation != null) {
buffer.write('"autoRotation":[');
for (var item in autoRotation!) {
buffer.writeAll([item, ','], '');
}
buffer.write('],');
}
if (autoRotationLimit != null) {
buffer.writeAll(['"autoRotationLimit":', autoRotationLimit, ','], '');
}
if (distance != null) {
buffer.writeAll(['"distance":', jsonEncode(distance), ','], '');
}
if (enabled != null) {
buffer.writeAll(['"enabled":', enabled, ','], '');
}
if (format != null) {
buffer.writeAll(['"format":', jsonEncode(format), ','], '');
}
if (formatter != null) {
buffer.writeAll(['"formatter":', formatter?.toJSON(), ','], '');
}
if (maxStaggerLines != null) {
buffer.writeAll(['"maxStaggerLines":', maxStaggerLines, ','], '');
}
if (overflow != null) {
buffer.writeAll(['"overflow":', jsonEncode(overflow), ','], '');
}
if (padding != null) {
buffer.writeAll(['"padding":', padding, ','], '');
}
if (position3d != null) {
buffer.writeAll(['"position3d":', jsonEncode(position3d), ','], '');
}
if (reserveSpace != null) {
buffer.writeAll(['"reserveSpace":', reserveSpace, ','], '');
}
if (rotation != null) {
buffer.writeAll(['"rotation":', rotation, ','], '');
}
if (skew3d != null) {
buffer.writeAll(['"skew3d":', skew3d, ','], '');
}
if (staggerLines != null) {
buffer.writeAll(['"staggerLines":', staggerLines, ','], '');
}
if (step != null) {
buffer.writeAll(['"step":', step, ','], '');
}
if (style != null) {
buffer.writeAll(['"style":', style?.toJSON(), ','], '');
}
if (useHTML != null) {
buffer.writeAll(['"useHTML":', useHTML, ','], '');
}
if (x != null) {
buffer.writeAll(['"x":', x, ','], '');
}
if (y != null) {
buffer.writeAll(['"y":', y, ','], '');
}
if (zIndex != null) {
buffer.writeAll(['"zIndex":', zIndex, ','], '');
}
}