addWayPoints method

Future addWayPoints({
  1. required List<WayPoint> wayPoints,
})

Adds waypoints or stops to an on-going navigation

wayPoints must not be null and have at least 1 item. The way points will be inserted after the currently navigating waypoint in the existing navigation

Implementation

Future<dynamic> addWayPoints({required List<WayPoint> wayPoints}) async {
  return DemoPluginPlatform.instance.addWayPoints(wayPoints: wayPoints);
}