PlacesAPINew constructor

PlacesAPINew({
  1. String? baseUrl,
  2. String? token,
  3. TokenCallback? tokenCallback,
  4. String? apiKey,
  5. Duration? connectTimeout,
  6. Duration? receiveTimeout,
  7. Duration? sendTimeout,
  8. HttpClient? httpClient,
})

Implementation

PlacesAPINew({
  String? baseUrl,
  super.token,
  super.tokenCallback,
  super.apiKey,
  super.connectTimeout,
  super.receiveTimeout,
  super.sendTimeout,
  super.httpClient,
}) : super(
        baseUrl: baseUrl ??= 'https://places.googleapis.com',
        dataType: Place(),
      ) {
  _service = PlacesServiceNew(dio: restAPI.dio);
}