leaveFromGroup method

  1. @override
Future<bool?> leaveFromGroup(
  1. String? userJid,
  2. String groupJid
)
override

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