GooglePlacesAutocompleteWidget constructor

const GooglePlacesAutocompleteWidget({
  1. Key? key,
  2. dynamic onLocationSelected(
    1. LocationResult?
    )?,
  3. dynamic onTextChanged(
    1. String
    )?,
  4. String? hintText = 'Search for a place...',
  5. String? apiKey,
  6. LocationPickerTheme? theme,
  7. String? initialValue,
  8. String? country,
  9. List<String> types = const [],
  10. Widget? suffixIcon,
  11. bool enabled = true,
  12. TextEditingController? controller,
})

Implementation

const GooglePlacesAutocompleteWidget({
  super.key,
  this.onLocationSelected,
  this.onTextChanged,
  this.hintText = 'Search for a place...',
  this.apiKey,
  this.theme,
  this.initialValue,
  this.country,
  this.types = const [],
  this.suffixIcon,
  this.enabled = true,
  this.controller,
});