MetricValue<T extends num> class

Represents a value computed by the metric.

Constructors

MetricValue({required String metricsId, required MetricDocumentation documentation, required T value, String? unitType, required MetricValueLevel level, required String comment, String? recommendation, Iterable<ContextMessage> context = const []})
Initialize a newly created MetricValue.
const

Properties

comment → String
The message for the user containing information about this value.
final
context → Iterable<ContextMessage>
An additional information associated with this value.
final
documentation → MetricDocumentation
The documentation associated with the computed metric.
final
hashCode → int
The hash code for this object.
no setterinherited
level → MetricValueLevel
The level of this value computed by the metric.
final
metricsId → String
The id of the computed metric.
final
recommendation → String?
The message for the user containing information about how the user can improve this value or null if there is no recommendation.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
unitType → String?
The human readable unit type.
final
value → T
The actual value computed by the metric.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
suppressed() → MetricValue<T>
Returns a copy of this value with level overridden to MetricValueLevel.none.
toString() → String
A string representation of this object.
inherited

Operators

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