MapmyIndiaDirection constructor

MapmyIndiaDirection({
  1. LatLng? origin,
  2. LatLng? destination,
  3. String? originELoc,
  4. String? destinationELoc,
  5. List<LatLng>? waypoint,
  6. List<String>? waypointELoc,
  7. List<String>? excludes,
  8. List<String>? annotations,
  9. int? routeType,
  10. bool? steps,
  11. bool? alternatives,
  12. List<String>? approaches,
  13. DirectionBearing? bearing,
  14. List<int>? waypointIndices,
  15. List<String>? waypointNames,
  16. List<LatLng>? waypointTargets,
  17. bool? bannerInstructions,
  18. bool? isSort,
  19. bool? lessVerbose,
  20. List<double>? radiuses,
  21. bool? routeRefresh,
  22. String? deviceId,
  23. bool? roundaboutExits,
  24. String? sessionId,
  25. bool? voiceInstructions,
  26. String? voiceUnits,
  27. bool? skipWaypoints,
  28. String profile = DirectionCriteria.PROFILE_DRIVING,
  29. String resource = DirectionCriteria.RESOURCE_ROUTE,
  30. String overview = DirectionCriteria.OVERVIEW_FULL,
  31. String geometries = DirectionCriteria.GEOMETRY_POLYLINE6,
})

Implementation

MapmyIndiaDirection({
  this.origin,
  this.destination,
  this.originELoc,
  this.destinationELoc,
  this.waypoint,
  this.waypointELoc,
  this.excludes,
  this.annotations,
  this.routeType,
  this.steps,
  this.alternatives,
  this.approaches,
  this.bearing,
  this.waypointIndices,
  this.waypointNames,
  this.waypointTargets,
  this.bannerInstructions,
  this.isSort,
  this.lessVerbose,
  this.radiuses,
  this.routeRefresh,
  this.deviceId,
  this.roundaboutExits,
  this.sessionId,
  this.voiceInstructions,
  this.voiceUnits,
  this.skipWaypoints,
  this.profile = DirectionCriteria.PROFILE_DRIVING,
  this.resource = DirectionCriteria.RESOURCE_ROUTE,
  this.overview = DirectionCriteria.OVERVIEW_FULL,
  this.geometries = DirectionCriteria.GEOMETRY_POLYLINE6,
})  : assert(originELoc != null || origin != null),
      assert(destinationELoc != null || destination != null);