SearchAppBarWidget constructor

const SearchAppBarWidget({
  1. Key? key,
  2. required Function searchTextDidChange,
  3. required Function onValueSubmitted,
  4. required TextEditingController placeNameTextController,
  5. required String hintText,
  6. Color? appBarColor,
  7. Color? backButtonColor,
  8. Color? infoButtonColor,
  9. Color? clearButtonColor,
  10. Color? cursorColor,
  11. Color? searchTextColor,
})

Implementation

const SearchAppBarWidget({
  Key? key,
  required Function searchTextDidChange,
  required Function onValueSubmitted,
  required TextEditingController placeNameTextController,
  required String hintText,
  Color? appBarColor,
  Color? backButtonColor,
  Color? infoButtonColor,
  Color? clearButtonColor,
  Color? cursorColor,
  Color? searchTextColor,
})  : _searchTextDidChange = searchTextDidChange,
      _onValueSubmitted = onValueSubmitted,
      _hintText = hintText,
      _placeNameTextController = placeNameTextController,
      _appBarColor = appBarColor ?? Colors.grey,
      _infoButtonColor = infoButtonColor ?? Colors.white,
      _backButtonColor = backButtonColor ?? Colors.white,
      _clearButtonColor = clearButtonColor ?? Colors.white,
      _cursorColor = cursorColor ?? Colors.white,
      _searchTextColor = searchTextColor ?? Colors.white,
      super(key: key);