toOptionsJSON method

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

Implementation

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

  if (arrowInfinityLine != null) {
    buffer.writeAll(
        ['"arrowInfinityLine":', arrowInfinityLine?.toJSON(), ','], '');
  }
  if (arrowRay != null) {
    buffer.writeAll(['"arrowRay":', arrowRay?.toJSON(), ','], '');
  }
  if (arrowSegment != null) {
    buffer.writeAll(['"arrowSegment":', arrowSegment?.toJSON(), ','], '');
  }
  if (horizontalLine != null) {
    buffer.writeAll(['"horizontalLine":', horizontalLine?.toJSON(), ','], '');
  }
  if (items != null) {
    buffer.writeAll(['"items":', jsonEncode(items), ','], '');
  }
  if (line != null) {
    buffer.writeAll(['"line":', line?.toJSON(), ','], '');
  }
  if (ray != null) {
    buffer.writeAll(['"ray":', ray?.toJSON(), ','], '');
  }
  if (segment != null) {
    buffer.writeAll(['"segment":', segment?.toJSON(), ','], '');
  }
  if (verticalLine != null) {
    buffer.writeAll(['"verticalLine":', verticalLine?.toJSON(), ','], '');
  }
}