addUsersToGroup method

  1. @override
Future<bool?> addUsersToGroup(
  1. String jid,
  2. List<String> userList
)
override

Implementation

@override
Future<bool?> addUsersToGroup(String jid, List<String> userList) async {
  bool? response;
  try {
    response = await mirrorFlyMethodChannel.invokeMethod<bool>(
        'addUsersToGroup', {"jid": jid, "members": userList});
    debugPrint("addUsersToGroup Response ==> $response");
    return response;
  } on PlatformException catch (e) {
    debugPrint("Platform Exception ===> $e");
    rethrow;
  } on Exception catch (error) {
    debugPrint("Exception ==> $error");
    rethrow;
  }
}