drawBlueText method Null safety

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

Implementation

void drawBlueText(Canvas canvas, double w) {
  // Separated out for the special handling of sqrt(x)
  TextSpan span = TextSpan(style: bFactory.gTextStyle, text: gText);
  TextPainter tp = TextPainter(
      text: span,
      textAlign: TextAlign.center,
      textDirection: TextDirection.ltr);
  tp.layout(minWidth: w);
  tp.paint(canvas, gTextOffset);
}