CometChatSearchListController<T1, T2> constructor

CometChatSearchListController<T1, T2>({
  1. required BuilderProtocol builderProtocol,
  2. String? searchKeyword,
  3. dynamic onError(
    1. Exception
    )?,
  4. 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);