Gauge constructor

Gauge(String name, String description, double min, double max)

Source

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

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-developer/Gauge/Gauge.html