updateMarkers method
Updates all markers on the map.
This replaces all existing markers with the new list.
Example:
import 'package:neshan_maps_flutter/map.dart';
import 'package:latlong2/latlong.dart';
final markers = [
NeshanMarker(id: 'marker1', position: LatLng(35.6892, 51.3890)),
NeshanMarker(id: 'marker2', position: LatLng(35.7, 51.4)),
];
controller.updateMarkers(markers);
Implementation
void updateMarkers(List<NeshanMarker> markers) {
_impl.updateMarkers(markers);
}