block method
Writes a block, prefixing each line with prefix when given.
Implementation
void block(LiveBlock block, {String? prefix}) {
for (final (LiveTone tone, String text) in block.lines) {
final String styled = _style(tone, text);
_sink.writeln(
prefix == null ? styled : '${_style(LiveTone.heading, prefix)}$styled',
);
}
}