SimpleRadialGauge constructor

const SimpleRadialGauge({
  1. required double actualValue,
  2. required double maxValue,
  3. double minValue = 0,
  4. Text? title,
  5. TitlePosition titlePosition = TitlePosition.top,
  6. String? unit,
  7. Widget? icon,
  8. Color pointerColor = Colors.blue,
  9. int decimalPlaces = 0,
  10. bool isAnimate = true,
  11. int animationDuration = kDefaultAnimationDuration,
  12. double size = 200,
  13. 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);