drawBlueText method Null safety

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

Implementation

@override
void drawBlueText(Canvas canvas, double w) {
  TextSpan span = TextSpan(style: bFactory.gTextStyleForLJ, text: gText);
  TextPainter tp = TextPainter(
      text: span,
      textAlign: TextAlign.center,
      textDirection: TextDirection.ltr);
  tp.layout(minWidth: w);
  tp.paint(canvas, gTextOffset);
}