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) by calling finish.
Constructors
- ScrollingProcessResult({required int exitCode, required ScrollingSection section})
-
Creates a result for the given
exitCodeandsection.
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
-
finish(
{required bool success, RetainSection? overrideRetention}) → void -
Finishes the section with
success, optionally overriding retention. -
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