writeTo method

  1. @override
void writeTo(
  1. SimpleGeometryContent writer, {
  2. String? name,
})
override

Writes this geometry object to writer.

Use an optional name to specify a name for a geometry (when applicable).

Implementation

@override
void writeTo(SimpleGeometryContent writer, {String? name}) =>
    isEmptyByGeometry
        ? writer.emptyGeometry(Geom.lineString, name: name)
        : writer.lineString(chain, name: name, bounds: bounds);