searchConversation method

  1. @override
Future searchConversation(
  1. String searchKey, [
  2. String? jidForSearch,
  3. bool globalSearch = true
])
override

Implementation

@override
Future<dynamic> searchConversation(String searchKey,
    [String? jidForSearch, bool globalSearch = true]) async {
  //filteredMessageList
  dynamic response;
  try {
    response =
        await mirrorFlyMethodChannel.invokeMethod('searchConversation', {
      "searchKey": searchKey,
      "jidForSearch": jidForSearch,
      "globalSearch": globalSearch
    });
    debugPrint("searchConversation ==> $response");
    return response;
  } on PlatformException catch (e) {
    debugPrint("Platform Exception ===> $e");
    rethrow;
  } on Exception catch (error) {
    debugPrint("Exception ==> $error");
    rethrow;
  }
}