getCommunityData method

Future getCommunityData(
  1. String communityAddress, {
  2. String? walletAddress,
})

Implementation

Future<dynamic> getCommunityData(
  String communityAddress, {
  String? walletAddress,
}) async {
  String path = walletAddress != null
      ? '/v1/communities/$communityAddress/$walletAddress'
      : '/v1/communities/$communityAddress';
  Response response = await _dio.get(
    path,
  );

  return response.data['data'];
}