drawWhiteText method Null safety

  1. @override
void drawWhiteText(
  1. Canvas canvas,
  2. TextStyle style,
  3. String text,
  4. double w
)
override

Implementation

@override
void drawWhiteText(Canvas canvas, TextStyle style, String text, double w) {
  if (bFactory.controller.model.onIsPressed.value) {
    drawCustomWhiteText(canvas, specialText, w);
  } else {
    super.drawWhiteText(canvas, style, text, w);
  }
}