toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (activeColor != null) {
buffer.writeAll(['"activeColor":', jsonEncode(activeColor), ','], '');
}
if (animation != null) {
buffer.writeAll(['"animation":', jsonEncode(animation), ','], '');
}
if (arrowSize != null) {
buffer.writeAll(['"arrowSize":', arrowSize, ','], '');
}
if (enabled != null) {
buffer.writeAll(['"enabled":', enabled, ','], '');
}
if (inactiveColor != null) {
buffer.writeAll(['"inactiveColor":', jsonEncode(inactiveColor), ','], '');
}
if (style != null) {
buffer.write('"style":{');
for (var item in style!.entries) {
buffer.writeAll(['"', item.key, '":', jsonEncode(item.value), ','], '');
}
buffer.write('},');
}
}