SimpleRadialGauge constructor
const
SimpleRadialGauge({
- required double actualValue,
- required double maxValue,
- double minValue = 0,
- Text? title,
- TitlePosition titlePosition = TitlePosition.top,
- String? unit,
- Widget? icon,
- Color pointerColor = Colors.blue,
- int decimalPlaces = 0,
- bool isAnimate = true,
- int animationDuration = kDefaultAnimationDuration,
- double size = 200,
- Key? key,
Creates a simple Gauge.
The actualValue
and maxValue
must not be null.
Implementation
const SimpleRadialGauge({
required this.actualValue,
required this.maxValue,
this.minValue = 0,
this.title,
this.titlePosition = TitlePosition.top,
this.unit,
this.icon,
this.pointerColor = Colors.blue,
this.decimalPlaces = 0,
this.isAnimate = true,
this.animationDuration = kDefaultAnimationDuration,
this.size = 200,
Key? key,
}) : assert(actualValue <= maxValue,
'actualValue must be less than or equal to maxValue'),
assert(size >= 75, 'size must be greater than 75'),
assert(actualValue >= minValue,
'actualValue must be greater than or equal to minValue'),
super(key: key);