SearchController constructor

SearchController(
  1. ChatService _chatService,
  2. UserService _userService,
  3. ContactService _contactService,
  4. MyUserService _myUserService,
  5. SessionService _sessionService, {
  6. required List<SearchCategory> categories,
  7. RxChat? chat,
  8. void onSelected(
    1. SearchViewResults? results
    )?,
  9. bool prePopulate = true,
})

Implementation

SearchController(
  this._chatService,
  this._userService,
  this._contactService,
  this._myUserService,
  this._sessionService, {
  required this.categories,
  this.chat,
  this.onSelected,
  this.prePopulate = true,
}) : assert(categories.isNotEmpty);