toOptionsJSON method

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

Implementation

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

  if (cursor != null) {
    buffer.writeAll(['"cursor":', jsonEncode(cursor), ','], '');
  }
  if (fill != null) {
    buffer.writeAll(['"fill":', jsonEncode(fill), ','], '');
  }
  if (stroke != null) {
    buffer.writeAll(['"stroke":', jsonEncode(stroke), ','], '');
  }
  if (strokeWidth != null) {
    buffer.writeAll(['"stroke-width":', strokeWidth, ','], '');
  }
}