MetricValue<T extends num> constructor
const
MetricValue<T extends num> ({
- 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.
The value will have the given metricsId
, documentation
and level
.
They will be used to classify the value in IDE or in reporters.
The value
, comment
, recommendation
and context
(if provided),
will be used to complete and improve the information for the end user.
Implementation
const MetricValue({
required this.metricsId,
required this.documentation,
required this.value,
this.unitType,
required this.level,
required this.comment,
this.recommendation,
this.context = const [],
});