updatePolygons method
Updates all polygons on the map.
This replaces all existing polygons with the new list.
Example:
import 'package:neshan_maps_flutter/map.dart';
import 'package:latlong2/latlong.dart';
final polygons = [
NeshanPolygon(id: 'area1', coordinates: [/* ... */]),
NeshanPolygon(id: 'area2', coordinates: [/* ... */]),
];
controller.updatePolygons(polygons);
Implementation
void updatePolygons(List<NeshanPolygon> polygons) {
_impl.updatePolygons(polygons);
}