toWKT method Null safety

String toWKT()

Converts the FeatureCollection to a WKT string.

Implementation

String toWKT() {
  return 'GEOMETRYCOLLECTION(${features.map((f) => f.toWKT()).join(',')})';
}