getFollowersCount static method

Future<int> getFollowersCount(
  1. FollowersQuery query
)

Get number of followers of a community entity, like topic or user.

query Query parameter.

Implementation

static Future<int> getFollowersCount(FollowersQuery query) {
  return NativeBridge.async(
          'Communities.getFollowersCount', jsonEncode(query.toJSON()))
      .then((result) => jsonDecode(result)['result']);
}