writer property

void Function(String) writer
getter/setter pair

where the text goes. Tests change it.

Implementation

static void Function(String) writer = _stdoutWrite;