setRoute method

  1. @override
Future<void> setRoute(
  1. MPRoute? route,
  2. 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()))
    });