Reporter class abstract
Base contract for delivering ReportEvents to one or more destinations.
Implementations should be resilient and never throw; return false on
delivery failure so the pipeline can fallback (e.g., queue to outbox).
- Implementers
Constructors
- Reporter()
-
Const constructor to support lightweight subclasses.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
defaultFileName(
ReportEvent event) → String - A JSON file name derived from the ID and timestamp retained in the payload.
-
generateFile(
ReportEvent event, {String? fileName, Directory? directory}) → Future< File> -
Writes the retained JSON to
directoryor the app's temporary directory.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
ReportEvent event) → Future< bool> - Sends a ReportEvent to the remote/system of choice.
- User-initiated sharing of a ReportEvent (e.g., via share sheet).
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited