Gauge constructor

Gauge(
  1. String name,
  2. String description,
  3. double min,
  4. double max
)

Implementation

Gauge(String name, String description, this.min, this.max)
    : super(name, description) {
  ArgumentError.checkNotNull(min, 'min');
  ArgumentError.checkNotNull(max, 'max');
  if (!(min < max)) throw new ArgumentError('min must be less than max');
  _value = min;
}