GaugeTextPainter constructor
GaugeTextPainter({
- required Color inactiveColor,
- required Color activeColor,
- required NumberInAndOut numberInAndOut,
- required double widthCircle,
- required SecondsMarker secondsMarker,
- required int start,
- required int end,
- required double value,
- required TextStyle? textStyle,
- 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;
}