printLogHandlerOut top-level property
Where printLogHandler writes its lines: standard output on the Dart
VM, print in Flutter (the device log) and on the web (the browser's
console). Replace it to send them elsewhere, or in a test of the
output.
Implementation
void Function(String line) printLogHandlerOut = writeConsoleLine;