printSink property
Print interceptor for the flutter_agent_memory package's bare
print() debug logs (gh-1510). The package logs with
// ignore: avoid_print on the calling isolate; in TUI mode stdout
IS the terminal, so those raw bytes interleave with the frame
protocol, physically clobber cells, and the cell-diff renderer then
skips repainting "unchanged" cells against the desynced grid — the
screen buffer loses characters (memory round-tripcomplete).
Every package-facing op runs inside a zone whose print delegates
here; the CLI wires its diagnostic log. Null keeps the package's
default print behavior (headless/embedders).
Implementation
final void Function(String line)? printSink;