toOptionsJSON method

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

Implementation

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

  if (minHeight != null) {
    buffer.writeAll(['"minHeight":', minHeight, ','], '');
  }
  if (minWidth != null) {
    buffer.writeAll(['"minWidth":', minWidth, ','], '');
  }
  if (opacity != null) {
    buffer.writeAll(['"opacity":', opacity, ','], '');
  }
  if (scrollPositionX != null) {
    buffer.writeAll(['"scrollPositionX":', scrollPositionX, ','], '');
  }
  if (scrollPositionY != null) {
    buffer.writeAll(['"scrollPositionY":', scrollPositionY, ','], '');
  }
}