CometChatSearchListController<T1, T2> constructor
CometChatSearchListController<T1, T2> ({
- required BuilderProtocol builderProtocol,
- String? searchKeyword,
- dynamic onError()?,
- bool isFetchNext = true,
Implementation
CometChatSearchListController(
{required this.builderProtocol,
String? searchKeyword,
Function(Exception)? onError,
bool isFetchNext = true})
: super(
searchKeyword != null && searchKeyword != ''
? builderProtocol.getSearchRequest(searchKeyword)
: builderProtocol.getRequest(),
onError: onError,
isFetchNext: isFetchNext);