OpenRouteService constructor
OpenRouteService({
- required String apiKey,
- String baseUrl = OpenRouteService.defaultBaseUrl,
- Client? client,
- ORSProfile defaultProfile = ORSProfile.footWalking,
Implementation
OpenRouteService({
required String apiKey,
String baseUrl = OpenRouteService.defaultBaseUrl,
http.Client? client,
ORSProfile defaultProfile = ORSProfile.footWalking,
}) : _apiKey = apiKey,
_baseUrl = baseUrl,
_defaultProfile = defaultProfile {
// Initialize HTTP client if not provided.
_client = client ?? http.Client();
}