ScrollingSink class
Bridges byte output written to an IOSink into a ScrollingSection.
Bytes are decoded as UTF-8 and split into lines, each appended to the
section. This adapts subprocess runners that write their output to
IOSinks (such as package:cli_tools's execute) so the output scrolls
within the section instead of taking over the screen.
Call close once the producing stream is finished to flush any trailing partial line and await the section being fully updated.
Constructors
- ScrollingSink(ScrollingSection _section)
-
Creates a sink that appends decoded lines to
section.
Properties
Methods
-
close(
) → Future< void> - Flushes any buffered output and completes once all lines have been appended to the section.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited