APIHistogram<T extends num> constructor

APIHistogram<T extends num>(
  1. String _name,
  2. String? _description,
  3. String? _unit,
  4. APIMeter _meter, {
  5. List<double>? boundaries,
})

Creates a new APIHistogram instrument.

This constructor is typically not called directly. Instead, use APIMeter.createHistogram.

_name The name of the histogram instrument. _description Optional description of the histogram instrument. _unit Optional unit of measurement for the histogram. _meter The meter that created this histogram instrument. boundaries Optional explicit bucket boundaries for the histogram.

Implementation

APIHistogram(this._name, this._description, this._unit, this._meter,
    {List<double>? boundaries})
    : _boundaries = boundaries != null ? List.unmodifiable(boundaries) : null;