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});
    LogMessage.d("searchConversation ", " $response");
    return response;
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}