updateCommunityName method

Future<Map> updateCommunityName({
  1. required String communityName,
  2. required String communityID,
})

Implementation

Future<Map<dynamic, dynamic>> updateCommunityName(
    {required String communityName, required String communityID}) async {
  final result = await promiseToFuture(
          ZIM.getInstance()!.updateCommunityName(communityName, communityID))
      .catchError(_handleError);

  return _jsObjectToMap(result);
}