drawBlueText method Null safety

  1. @override
void drawBlueText(
  1. Canvas canvas,
  2. double w
)
override

Implementation

@override
void drawBlueText(Canvas canvas, double w) {
  super.drawBlueText(canvas, w);
  // Extend the line on the top of the square root symbol
  TextSpan span = TextSpan(style: bFactory.gTextStyle, text: '\u203E');
  TextPainter tp = TextPainter(
      text: span,
      textAlign: TextAlign.center,
      textDirection: TextDirection.ltr);
  tp.layout(minWidth: w);
  tp.paint(canvas, gTextOffset.translate(5.4, -2.2));
  tp.paint(canvas, gTextOffset.translate(13, -2.2));
}