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;
}