OlaRoutingService constructor

OlaRoutingService({
  1. required String apiKey,
  2. OlaMapsHttp? httpClient,
})

Creates a routing client. Pass httpClient to share language defaults.

Implementation

OlaRoutingService({required this.apiKey, OlaMapsHttp? httpClient})
    : _http = httpClient ?? OlaMapsHttp(apiKey: apiKey);