updateGroupName method

Future<Map> updateGroupName(
  1. String groupName,
  2. String groupID
)

Implementation

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

  return jsObjectToMap(result);
}