JsonEmitter class final

Emits leaks as a JSON file.

The output is a human-readable, indented JSON array containing serialized Allocation records. This format is suitable for machine processing, archival storage, or external analysis tools.

Implemented types

Constructors

JsonEmitter({required String filePath})
Creates a JSON emitter that writes to filePath.
const

Properties

filePath String
Destination file path for the JSON report.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

emit(List<Allocation> leaks) → void
Writes all leaks to disk as formatted JSON.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited