setSearching method

void setSearching(
  1. {required AppModel appModel,
  2. required CreatorModel creatorModel,
  3. required bool isSearching,
  4. String? searchTerm}
)

Flag for showing the loading state of the picker.

Implementation

void setSearching({
  required AppModel appModel,
  required CreatorModel creatorModel,
  required bool isSearching,
  String? searchTerm,
}) {
  _isSearching = isSearching;
  _currentSearchTerm = searchTerm;
  creatorModel.refresh();
}