toOptionsJSON method

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

Implementation

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

  if (key != null) {
    buffer.writeAll(['"key":', jsonEncode(key), ','], '');
  }
  if (mouseWheel != null) {
    buffer.writeAll(['"mouseWheel":', mouseWheel?.toJSON(), ','], '');
  }
  if (pinchType != null) {
    buffer.writeAll(['"pinchType":', jsonEncode(pinchType), ','], '');
  }
  if (resetButton != null) {
    buffer.writeAll(['"resetButton":', resetButton?.toJSON(), ','], '');
  }
  if (singleTouch != null) {
    buffer.writeAll(['"singleTouch":', singleTouch, ','], '');
  }
  if (type != null) {
    buffer.writeAll(['"type":', jsonEncode(type), ','], '');
  }
}