addWayPoints method

Future addWayPoints({
  1. required List<LatLng> 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<LatLng> wayPoints}) async {
  return VietmapNavigationPluginPlatform.instance
      .addWayPoints(wayPoints: wayPoints);
}