SearchController constructor

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

Implementation

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