getPoints method

List<Point> getPoints(
  1. List<LatLng> latLngs
)

Implementation

List<Point> getPoints(List<LatLng> latLngs) {
  return latLngs
      .map(
        (p) => Point(
          coordinates: Position(
            p.longitude,
            p.latitude,
          ),
        ),
      )
      .toList();
}