Distribution constructor

Distribution({
  1. Int64? count,
  2. double? mean,
  3. double? sumOfSquaredDeviation,
  4. Distribution_Range? range,
  5. Distribution_BucketOptions? bucketOptions,
  6. Iterable<Int64>? bucketCounts,
  7. Iterable<Distribution_Exemplar>? exemplars,
})

Implementation

factory Distribution({
  $fixnum.Int64? count,
  $core.double? mean,
  $core.double? sumOfSquaredDeviation,
  Distribution_Range? range,
  Distribution_BucketOptions? bucketOptions,
  $core.Iterable<$fixnum.Int64>? bucketCounts,
  $core.Iterable<Distribution_Exemplar>? exemplars,
}) {
  final result = create();
  if (count != null) result.count = count;
  if (mean != null) result.mean = mean;
  if (sumOfSquaredDeviation != null)
    result.sumOfSquaredDeviation = sumOfSquaredDeviation;
  if (range != null) result.range = range;
  if (bucketOptions != null) result.bucketOptions = bucketOptions;
  if (bucketCounts != null) result.bucketCounts.addAll(bucketCounts);
  if (exemplars != null) result.exemplars.addAll(exemplars);
  return result;
}