removeMemberFromGroup method

  1. @override
Future<bool?> removeMemberFromGroup(
  1. String groupjid,
  2. String userjid
)
override

Implementation

@override
Future<bool?> removeMemberFromGroup(String groupjid, String userjid) async {
  bool? response;
  try {
    response = await mirrorFlyMethodChannel.invokeMethod<bool>(
        'removeMemberFromGroup', {"jid": groupjid, "userjid": userjid});
    debugPrint("report Result ==> $response");
    return response;
  } on PlatformException catch (e) {
    debugPrint("Platform Exception ===> $e");
    return false;
  } on Exception catch (error) {
    debugPrint("Exception ==> $error");
    return false;
  }
}