debugPrintOverride property

DebugPrintCallback debugPrintOverride
@protected

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

@protected
DebugPrintCallback get debugPrintOverride => debugPrint;