searchConversation method
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;
}
}