leaveFromGroup method
Implementation
@override
Future<bool?> leaveFromGroup(String? userJid, String groupJid) async {
bool? response;
try {
response = await mirrorFlyMethodChannel.invokeMethod<bool>(
'leaveFromGroup', {"userJid": userJid, "groupJid": groupJid});
debugPrint("leaveFromGroup Result ==> $response");
return response;
} on PlatformException catch (e) {
debugPrint("Platform Exception ===> $e");
return false;
} on Exception catch (error) {
debugPrint("Exception ==> $error");
return false;
}
}