SpeedTextPainter constructor

SpeedTextPainter({
  1. required int start,
  2. required int end,
  3. required double value,
})

Implementation

SpeedTextPainter(
    {required this.start, required this.end, required this.value})
    : tickPaint = Paint(),
      textPainter = TextPainter(
        textAlign: TextAlign.center,
        textDirection: TextDirection.rtl,
      ),
      textStyle = const TextStyle(
        color: Colors.black,
        fontSize: 15.0,
      ) {
  tickPaint.color = Colors.white;
}