LinearCustomGauge constructor
const
LinearCustomGauge({
- Key? key,
- required double minValue,
- required double maxValue,
- required double actualValue,
- required int divisions,
- required Text title,
- required TitlePosition titlePosition,
- required Color pointerColor,
- required Icon pointerIcon,
- required GaugeOrientation gaugeOrientation,
- required int decimalPlaces,
- required bool isAnimate,
- required int milliseconds,
- required double gaugeStrokeWidth,
- required double rangeStrokeWidth,
- required double majorTickStrokeWidth,
- required double minorTickStrokeWidth,
- required TextStyle actualValueTextStyle,
- required TextStyle majorTicksValueTextStyle,
Implementation
const LinearCustomGauge({
super.key,
required this.minValue,
required this.maxValue,
required this.actualValue,
required this.divisions,
required this.title,
required this.titlePosition,
required this.pointerColor,
required this.pointerIcon,
required this.gaugeOrientation,
required this.decimalPlaces,
required this.isAnimate,
required this.milliseconds,
required this.gaugeStrokeWidth,
required this.rangeStrokeWidth,
required this.majorTickStrokeWidth,
required this.minorTickStrokeWidth,
required this.actualValueTextStyle,
required this.majorTicksValueTextStyle,
}) : assert(actualValue <= maxValue,
'actualValue must be less than or equal to maxValue'),
assert(actualValue >= minValue,
'actualValue must be greater than or equal to minValue');