toMPPolygons method

List<MPPolygon> toMPPolygons()

Converts the MPMultiPolygon to a collection of MPPolygons

Implementation

List<MPPolygon> toMPPolygons() {
  List<MPPolygon> result = List.empty(growable: true);
  for (var coordinate in _coordinates) {
    result.add(MPPolygon._fromCoordinates(coordinate));
  }
  return result;
}