transferGroupOwner method

Future<Map> transferGroupOwner(
  1. String toUserID,
  2. String groupID
)

Implementation

Future<Map<dynamic, dynamic>> transferGroupOwner(
    String toUserID, String groupID) async {
  final result = await promiseToFuture(
          ZIM.getInstance()!.transferGroupOwner(toUserID, groupID))
      .catchError((e) {
    throw PlatformException(code: e.code.toString(), message: e.message);
  });

  return jsObjectToMap(result);
}