toOptionsJSON method

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

Implementation

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

  if (decimals != null) {
    buffer.writeAll(['"decimals":', decimals, ','], '');
  }
  if (increment != null) {
    buffer.writeAll(['"increment":', increment, ','], '');
  }
  if (index != null) {
    buffer.writeAll(['"index":', index, ','], '');
  }
  if (initialAccelerationFactor != null) {
    buffer.writeAll(
        ['"initialAccelerationFactor":', initialAccelerationFactor, ','], '');
  }
  if (maxAccelerationFactor != null) {
    buffer.writeAll(
        ['"maxAccelerationFactor":', maxAccelerationFactor, ','], '');
  }
}