CompositeReporter class
Fans out delivery to multiple reporters.
A send/share is considered successful if any reporter succeeds. Failures from individual reporters are swallowed to keep the pipeline resilient.
Constructors
-
CompositeReporter(List<
Reporter> reporters) -
Creates a composite reporter that delegates to the provided
reporters.const
Properties
Methods
-
defaultFileName(
ReportEvent event) → String -
A JSON file name derived from the ID and timestamp retained in the payload.
inherited
-
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.
override
-
User-initiated sharing of a ReportEvent (e.g., via share sheet).
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited