SocialReportListener class
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:
- SocialOverlay.registerReportListener - Register listeners for report updates.
- OverlayItem - Represents social report overlay items with preview data.
- AlarmService - Get notifications related to incoming social reports.
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