SearchLocation constructor

SearchLocation({
  1. required String apiKey,
  2. String placeholder = 'Search',
  3. IconData icon = Icons.search,
  4. bool hasClearButton = true,
  5. IconData clearIcon = Icons.clear,
  6. Color iconColor = Colors.blue,
  7. void onSelected(
    1. Place place
    )?,
  8. void onSearch(
    1. Place place
    )?,
  9. void onChangeText(
    1. String value
    )?,
  10. void onClearIconPress()?,
  11. String language = 'en',
  12. String? country,
  13. LatLng? location,
  14. int? radius,
  15. bool strictBounds = false,
  16. PlaceType? placeType,
  17. bool darkMode = false,
  18. Key? key,
})

Implementation

SearchLocation({
  required this.apiKey,
  this.placeholder = 'Search',
  this.icon = Icons.search,
  this.hasClearButton = true,
  this.clearIcon = Icons.clear,
  this.iconColor = Colors.blue,
  this.onSelected,
  this.onSearch,
  this.onChangeText,
  this.onClearIconPress,
  this.language = 'en',
  this.country,
  this.location,
  this.radius,
  this.strictBounds = false,
  this.placeType,
  this.darkMode = false,
  Key ? key,
}): super(key: key);