MapboxAutocompleteSearchWidget constructor
MapboxAutocompleteSearchWidget({
- required Function onPlaceSelected,
- required String mapboxApiKey,
- String hintText = 'Search Place',
- Color appBarColor = Colors.black45,
- Color backButtonColor = Colors.white,
- Color infoButtonColor = Colors.white,
- Color clearButtonColor = Colors.white,
- Color cursorColor = Colors.white,
- Color searchTextColor = Colors.white,
- Color searchBackgroundColor = Colors.black12,
Implementation
MapboxAutocompleteSearchWidget({
required this.onPlaceSelected,
required this.mapboxApiKey,
this.hintText = 'Search Place',
this.appBarColor = Colors.black45,
this.backButtonColor = Colors.white,
this.infoButtonColor = Colors.white,
this.clearButtonColor = Colors.white,
this.cursorColor = Colors.white,
this.searchTextColor = Colors.white,
this.searchBackgroundColor = Colors.black12,
});