FeedPostActions class

Optional callbacks for post chrome (social post card behavior).

Every field is nullable — omit what you do not handle. Pair with FeedPostChromeOptions on FeedPostCard / FeedPlayerWidget.postChrome to hide controls. With FeedPostChromeOptions.hideEngagementWithoutCallbacks (default true), controls whose callback is omitted are not drawn at all.

The SDK does not ship comment screens, profile stacks, or blocs; wire routes and APIs in these callbacks using FeedItem / FeedItem.raw.

Constructors

FeedPostActions({void onProfileTap(BuildContext context, FeedItem item)?, void onLikeTap(BuildContext context, FeedItem item)?, void onCommentTap(BuildContext context, FeedItem item)?, void onShareTap(BuildContext context, FeedItem item)?, void onMoreTap(BuildContext context, FeedItem item)?, void onLikesSummaryTap(BuildContext context, FeedItem item)?, void onViewsTap(BuildContext context, FeedItem item)?})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
onCommentTap → void Function(BuildContext context, FeedItem item)?
Open comments (e.g. push your app's comment screen).
final
onLikesSummaryTap → void Function(BuildContext context, FeedItem item)?
"N likes" / likes list (e.g. show a likes bottom sheet).
final
onLikeTap → void Function(BuildContext context, FeedItem item)?
Like / unlike. The card applies optimistic UI; persist in your bloc/API.
final
onMoreTap → void Function(BuildContext context, FeedItem item)?
final
onProfileTap → void Function(BuildContext context, FeedItem item)?
Header (avatar / name area). Use FeedItem.authorId to open profile.
final
onShareTap → void Function(BuildContext context, FeedItem item)?
final
onViewsTap → void Function(BuildContext context, FeedItem item)?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited