setRoute method
Future<void>
setRoute(
- MPRoute? route,
- Map<
num, MPRouteStopIconConfigInterface> ? stopIcons
override
Implementation
@override
Future<void> setRoute(MPRoute? route,
Map<num, MPRouteStopIconConfigInterface>? stopIcons) =>
directionsRendererMethodChannel.invokeMethod('DRE_setRoute', {
"route": jsonEncode(route),
"stopIcons": stopIcons
?.map((key, value) => MapEntry(key, value.getImage().toString()))
});