TimeGauge constructor

TimeGauge(
  1. num time,
  2. BitmapData bitmapData, [
  3. String direction = Gauge.DIRECTION_LEFT
])

Implementation

TimeGauge(num time, BitmapData bitmapData,
    [String direction = Gauge.DIRECTION_LEFT])
    : super(bitmapData, direction) {
  if (time <= 0) throw ArgumentError('Time must be greater than zero');
  _totalTime = time;
  clearAlarms();
}