removeReaction static method

Future<void> removeReaction({
  1. required String feedId,
  2. required String reactionId,
  3. required String ownerId,
  4. required String parentId,
  5. required String parentOwnerId,
  6. bool updateParentReactionsCount = true,
  7. bool updateUserReactionsCount = true,
  8. dynamic onSuccess(
    1. String
    )?,
  9. dynamic onError(
    1. 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,
  );
}