SocialReportListener class
SocialReportListener listens for updates to social report overlay items.
It notifies about updates to social‑report overlay items (comments, thumbs or detail changes). It is created with an optional callback and delivers the updated overlay item whenever the overlay emits an update event.
Constructors
- SocialReportListener.new({void onReportUpdated(OverlayItem item)?})
-
Creates a SocialReportListener and sets the 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 be notified when a "comment" or "thumb" is added or when the details are updated.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited