GaugeTextPainter constructor

GaugeTextPainter({
  1. required Color inactiveColor,
  2. required Color activeColor,
  3. required NumberInAndOut numberInAndOut,
  4. required double widthCircle,
  5. required SecondsMarker secondsMarker,
  6. required int start,
  7. required int end,
  8. required double value,
  9. required TextStyle? textStyle,
  10. required Number number,
})

Implementation

GaugeTextPainter({
  required this.inactiveColor,
  required this.activeColor,
  required this.numberInAndOut,
  required this.widthCircle,
  required this.secondsMarker,
  required this.start,
  required this.end,
  required this.value,
  required this.textStyle,
  required this.number,
})  : tickPaint = Paint(),
      textPainter = TextPainter(
        textAlign: TextAlign.center,
        textDirection: TextDirection.rtl,
      ) {
  tickPaint.color = activeColor;
}