followStats method
Retrieves the number of followers and following feed stats of the current feed.
For each count, feed slugs can be provided to filter counts accordingly. Example:
await client.feed.followStats(followerSlugs:['user', 'news'], followingSlugs:['timeline']);
Implementation
Future<FollowStats> followStats({
List<String>? followingSlugs,
List<String>? followerSlugs,
}) {
final options = FollowStats(
following: Following(
feed: feedId,
slugs: followingSlugs,
),
followers: Followers(
feed: feedId,
slugs: followerSlugs,
),
);
final token =
userToken ?? TokenHelper.buildFollowToken(secret!, TokenAction.any);
return feed.followStats(token, options.toJson());
}