toOptionsJSON method

  1. @override
void toOptionsJSON(
  1. StringBuffer buffer
)
override

Implementation

@override
void toOptionsJSON(StringBuffer buffer) {
  super.toOptionsJSON(buffer);

  if (buttonSpacing != null) {
    buffer.writeAll(['"buttonSpacing":', buttonSpacing, ','], '');
  }
  if (buttonTheme != null) {
    buffer.writeAll(['"buttonTheme":', buttonTheme?.toJSON(), ','], '');
  }
  if (events != null) {
    buffer.writeAll(['"events":', events?.toJSON(), ','], '');
  }
  if (floating != null) {
    buffer.writeAll(['"floating":', floating, ','], '');
  }
  if (format != null) {
    buffer.writeAll(['"format":', jsonEncode(format), ','], '');
  }
  if (formatter != null) {
    buffer.writeAll(['"formatter":', formatter?.toJSON(), ','], '');
  }
  if (position != null) {
    buffer.writeAll(['"position":', position?.toJSON(), ','], '');
  }
  if (relativeTo != null) {
    buffer.writeAll(['"relativeTo":', jsonEncode(relativeTo), ','], '');
  }
  if (rtl != null) {
    buffer.writeAll(['"rtl":', rtl, ','], '');
  }
  if (separator != null) {
    buffer.writeAll(['"separator":', separator?.toJSON(), ','], '');
  }
  if (showFullPath != null) {
    buffer.writeAll(['"showFullPath":', showFullPath, ','], '');
  }
  if (style != null) {
    buffer.writeAll(['"style":', jsonEncode(style), ','], '');
  }
  if (useHTML != null) {
    buffer.writeAll(['"useHTML":', useHTML, ','], '');
  }
  if (zIndex != null) {
    buffer.writeAll(['"zIndex":', zIndex, ','], '');
  }
}