GaugeTextCounter constructor

GaugeTextCounter({
  1. required bool isDecimal,
  2. required double width,
  3. required CounterAlign counterAlign,
  4. required int start,
  5. required int end,
  6. required double value,
  7. required TextStyle? textStyle,
})

Implementation

GaugeTextCounter({
  required this.isDecimal,
  required this.width,
  required this.counterAlign,
  required this.start,
  required this.end,
  required this.value,
  required this.textStyle,
})  : tickPaint = Paint(),
      textPainter = TextPainter(
        textAlign: TextAlign.center,
        textDirection: TextDirection.rtl,
      ) {
  tickPaint.color = Colors.green;
}