follow method
Follows the given target feed
Parameters:
flatFeet
: Slug of the target feed
activityCopyLimit
: Limit the amount of activities copied over on follow
For example, to create a following relationship between Jack's "timeline" feed and Chris' "user" feed you'd do the following
final jack = client.flatFeed('timeline', 'jack');
await jack.follow(chris);
API docs: following
Implementation
Future<void> follow(
FlatFeed flatFeed, {
int? activityCopyLimit,
}) async {
final token = userToken ??
TokenHelper.buildFollowToken(secret!, TokenAction.write, feedId);
final targetToken = userToken ??
TokenHelper.buildFeedToken(secret!, TokenAction.read, flatFeed.feedId);
await feed.follow(token, targetToken, feedId, flatFeed.feedId,
activityCopyLimit ?? Default.activityCopyLimit);
}