addItineraryFromMapCenter method
- required Coordinate destination,
- ItinerarySearchRules? searchRules,
- Color? color,
add itinerary from map center to the specified destination
Implementation
Future<void> addItineraryFromMapCenter(
{required Coordinate destination,
ItinerarySearchRules? searchRules,
Color? color}) async {
ItineraryWidget._startPointType = ItineraryStartPointType.mapCenter;
await _methodChannel.invokeMethod('addItineraryFromMapCenter', {
"destination": destination.toMap(),
"searchRules": searchRules?.toMap() ?? ItinerarySearchRules().toMap(),
"red": color?.red,
"green": color?.green,
"blue": color?.blue,
"alpha": color?.alpha,
});
}