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