MetricValue<T extends num> constructor

const MetricValue<T extends num>({
  1. required String metricsId,
  2. required MetricDocumentation documentation,
  3. required T value,
  4. String? unitType,
  5. required MetricValueLevel level,
  6. required String comment,
  7. String? recommendation,
  8. 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 [],
});