debugPrintOverride property
override
The value to set debugPrint to while tests are running.
This can be used to redirect console output from the framework, or to change the behavior of debugPrint. For example, AutomatedTestWidgetsFlutterBinding uses it to make debugPrint synchronous, disabling its normal throttling behavior.
Implementation
@override
DebugPrintCallback get debugPrintOverride => debugPrintSynchronously;