It looks like the function "unfollowFeed" in "stream_feed_flutter_code-0.8.0./lib/src/bloc/feed_bloc.dart" is missing the optional parameter "bool keepHistory":
/// Unfollows the given [unfolloweeId] id.
Future unfollowFeed({
String unfollowerFeedGroup = 'timeline',
String unfolloweeFeedGroup = 'user',
required String unfolloweeId,
}) async {
final unfollowerFeed = client.flatFeed(unfollowerFeedGroup);
final unfolloweeFeed = client.flatFeed(unfolloweeFeedGroup, unfolloweeId);
await unfollowerFeed.unfollow(unfolloweeFeed);
}
It should look like this:
/// Unfollows the given [unfolloweeId] id.
Future unfollowFeed({
String unfollowerFeedGroup = 'timeline',
String unfolloweeFeedGroup = 'user',
required String unfolloweeId,
bool keepHistory = false,
}) async {
final unfollowerFeed = client.flatFeed(unfollowerFeedGroup);
final unfolloweeFeed = client.flatFeed(unfolloweeFeedGroup, unfolloweeId);
await unfollowerFeed.unfollow(unfolloweeFeed, keepHistory);
}
I would appreciate a fix.