updateSettings method

  1. @override
Future<void> updateSettings(
  1. String apiKey, {
  2. Locale? locale,
  3. bool? useNewApi,
})
override

Updates the settings of the places client with the given API key and locale.

Implementation

@override
Future<void> updateSettings(String apiKey,
    {Locale? locale, bool? useNewApi}) async {
  if (locale != null) {
    _language = locale.languageCode;
  }
}