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.

Inheritance

Constructors

CompositeReporter(List<Reporter> reporters)
Creates a composite reporter that delegates to the provided reporters.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
reporters List<Reporter>
Reporters will be called in order. Keep side-effecting reporters first if ordering matters.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

defaultFileName(ReportEvent event) String
Builds a stable, human-readable file name for a report event.
inherited
generateFile(ReportEvent event, {String? fileName, Directory? directory}) Future<File>
Generates a JSON file representation of the event for sharing or local persistence.
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
share(ReportEvent event) Future<bool>
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