setMarkerIcon method

Future setMarkerIcon(
  1. GeoPoint point,
  2. MarkerIcon icon
)

setMarkerIcon

this method allow to change Icon Marker of specific GeoPoint thr GeoPoint should be exist,or nothing will happen

point : (GeoPoint) geopoint that you want to change icon

icon : (MarkerIcon) widget that represent the new home marker

Implementation

Future setMarkerIcon(GeoPoint point, MarkerIcon icon) async {
  await osmBaseController.setIconMarker(point, icon);
}