explode method

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

Explodes the Polygon into a List of Points.

Implementation

@override
List<Point> explode() {
  return coordinates
      .map((ring) => ring.coordinates.map((coord) => Point(coord)))
      .toList()
      .expand((e) => e)
      .toList();
}