ScrollingProcessResult class

The outcome of running a process inside a ScrollingSection.

After awaiting the run, decide what to do with the section based on the exitCode (or any other criteria): call keep to leave the last output lines visible, or clear to remove the section and overwrite the area.

Constructors

ScrollingProcessResult({required int exitCode, required ScrollingSection section})
Creates a result for the given exitCode and section.

Properties

exitCode int
The exit code of the process.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
section ScrollingSection
The section the output was rendered in.
final
succeeded bool
Whether the process exited successfully (exit code 0).
no setter

Methods

clear() → void
Clears the scrolling section so the area can be overwritten.
keep({bool full = false}) → void
Keeps the last visible output lines in place.
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