Histogram.exponential constructor

Histogram.exponential({
  1. required String name,
  2. required String help,
  3. required double start,
  4. required double factor,
  5. required int count,
  6. List<String> labelNames = const [],
  7. Collect<Collector>? collectCallback,
})

Construct a new Histogram with a name, help text, and optional labelNames. The count buckets are exponential distributed starting at start with a distance growing exponentially by factor. If labelNames are provided, use labels(...) to assign label values. The optional collectCallback is called at the beginning of collect and allows to update the value of the histogram before collecting it.

Implementation

Histogram.exponential({
  required String name,
  required String help,
  required double start,
  required double factor,
  required int count,
  List<String> labelNames = const [],
  Collect? collectCallback,
}) : this(
        name: name,
        help: help,
        labelNames: labelNames,
        buckets: _generateExponentialBuckets(start, factor, count),
        collectCallback: collectCallback,
      );