SocialReportListener class Routes & Navigation

Listens for updates to social report overlay items and delivers update events.

Notifies about changes to social‑report overlay items such as new comments, thumb (upvote/downvote) actions, or other detail changes. Use this listener to receive the updated OverlayItem whenever the social overlay emits an update for a specific report.

Typical usage:

final listener = SocialReportListener(
  onReportUpdated: (OverlayItem report) {
    // Do something with the updated report
  },
);

SocialOverlay.registerReportListener(reportItem, listener);

Obtain and register instances via SocialOverlay.registerReportListener.

Also see:

Constructors

SocialReportListener({void onReportUpdated(OverlayItem item)?})
Creates a SocialReportListener and sets an optional update callback.
factory
SocialReportListener.init(dynamic id)

Properties

hashCode int
The hash code for this object.
no setterinherited
id ↔ dynamic
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() FutureOr<void>
handleEvent(Map arguments) → void
Method called when event is called from the native side.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerOnReportUpdated(void onReportUpdated(OverlayItem report)?) → void
Registers a callback to receive report update notifications.
toString() String
A string representation of this object.
inherited

Operators

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