Report class

Represents a metrics report collected for an entity.

Constructors

Report({required SourceSpan location, required Iterable<MetricValue<num>> metrics, required AstNode declaration})
Initialize a newly created Report.
const

Properties

declaration → AstNode
The node that represents a dart code snippet in the AST structure.
final
hashCode int
The hash code for this object.
no setterinherited
location → SourceSpan
The source code location of the target entity.
final
metrics Iterable<MetricValue<num>>
Target entity metrics.
final
metricsLevel MetricValueLevel
The highest reported level of a metric.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

metric(String id) MetricValue<num>?
Returns a certain target metric.
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