sink property

void Function(String line)? sink
getter/setter pair

Optional host sink that receives every flushed line IN ADDITION to the console. This is the seam by which a host app (whose devtools export must never depend on a console the user can't reach) mirrors the trace into its own log - the package must not import the host, so the host hands us a closure instead. Not consulted at all while the log is off.

Implementation

static void Function(String line)? sink;