printToConsole method Null safety

  1. @protected
void printToConsole(
  1. String message

Calls debugPrint with the given message.

This is overridden by the WidgetTester subclass to use the test binding's TestWidgetsFlutterBinding.debugPrintOverride, so that it appears on the console even if the test is logging output from the application.


void printToConsole(String message) {