addItineraryFromMapCenter method

Future<void> addItineraryFromMapCenter(
  1. Coordinate coordinate, {
  2. bool avoidElevators = false,
  3. bool avoidEscalators = false,
  4. bool avoidStairs = false,
})

add itinerary from map center to the specified destination

Implementation

Future<void> addItineraryFromMapCenter(Coordinate coordinate,
    {bool avoidElevators = false,
    bool avoidEscalators = false,
    bool avoidStairs = false}) async {
  await _channel.invokeMethod('addItineraryFromMapCenter', {
    "destination": coordinate.toMap(),
    "avoidElevators": avoidElevators,
    "avoidEscalators": avoidEscalators,
    "avoidStairs": avoidStairs
  });
}