StatisticValue constructor

StatisticValue({
  1. StatisticId? id,
  2. double? value,
  3. Iterable<MapEntry<String, StatisticValue>>? dimmensions,
  4. double? min,
  5. double? max,
  6. double? avg,
  7. int? count,
})

Implementation

factory StatisticValue({
  $1.StatisticId? id,
  $core.double? value,
  $core.Iterable<$core.MapEntry<$core.String, StatisticValue>>? dimmensions,
  $core.double? min,
  $core.double? max,
  $core.double? avg,
  $core.int? count,
}) {
  final result = create();
  if (id != null) result.id = id;
  if (value != null) result.value = value;
  if (dimmensions != null) result.dimmensions.addEntries(dimmensions);
  if (min != null) result.min = min;
  if (max != null) result.max = max;
  if (avg != null) result.avg = avg;
  if (count != null) result.count = count;
  return result;
}