writeTo method

  1. @override
void writeTo(
  1. SimpleGeometryContent writer
)
override

Writes this geometry object to writer.

Implementation

@override
void writeTo(SimpleGeometryContent writer) {
  final type = onePoint?.type ?? Coords.xy;
  writer.polygon(
    rings.map<Iterable<double>>((e) => e.chain.valuesFlat(type)),
    type: type,
    bounds:
        boundsExplicit != null ? Box.getDoubleList(boundsExplicit!) : null,
  );
}