explode method

  1. @override
List<Point> explode()
override

Explodes the MultiPoint into a List of Points.

Example:

MultiPoint([Coordinate(1, 2), Coordinate(3, 4)]).explode(); // [Point(Coordinate(1, 2)), Point(Coordinate(3, 4))]

Implementation

@override
List<Point> explode() {
  return coordinates.map((c) => Point(c)).toList();
}