TimeGauge constructor
TimeGauge(
- num time,
- BitmapData bitmapData, [
- 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();
}