SearchLocation constructor
SearchLocation({
- required String apiKey,
- String placeholder = 'Search',
- IconData icon = Icons.search,
- bool hasClearButton = true,
- IconData clearIcon = Icons.clear,
- Color iconColor = Colors.blue,
- void onSelected(
- Place place
- void onSearch(
- Place place
- void onChangeText(
- String value
- void onClearIconPress()?,
- String language = 'en',
- String? country,
- LatLng? location,
- int? radius,
- bool strictBounds = false,
- PlaceType? placeType,
- bool darkMode = false,
- 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);