removeReaction static method
Future<void>
removeReaction(
{ - required String feedId,
- required String reactionId,
- required String ownerId,
- required String parentId,
- required String parentOwnerId,
- bool updateParentReactionsCount = true,
- bool updateUserReactionsCount = true,
- dynamic onSuccess(
- String
)?,
- dynamic onError(
- dynamic
)?,
})
Implementation
static Future<void> removeReaction({
required final String feedId,
required final String reactionId,
required final String ownerId,
required final String parentId,
required final String parentOwnerId,
final bool updateParentReactionsCount = true,
final bool updateUserReactionsCount = true,
final Function(String)? onSuccess,
final Function(dynamic)? onError,
}) {
return FeedProvider().removeReaction(
feedId: feedId,
reactionId: reactionId,
ownerId: ownerId,
parentId: parentId,
parentOwnerId: parentOwnerId,
updateParentReactionsCount: updateParentReactionsCount,
updateUserReactionsCount: updateUserReactionsCount,
onSuccess: onSuccess,
onError: onError,
);
}