LiveProcess class

A program a recorder started, such as simctl io recordVideo.

Constructors

LiveProcess({required Stream<List<int>> stdout, required Stream<List<int>> stderr, required bool signal(ProcessSignal signal)})
Creates a LiveProcess reading stdout and stderr, and sending signals with signal.

Properties

exited → Future<void>
Completes when the program has exited.
no setter
hasExited → bool
Whether the program has exited.
no setter
hashCode → int
The hash code for this object.
no setterinherited
output → List<String>
Every line the program has printed so far.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tail → String
The last few lines of output, to explain a failure.
no setter

Methods

interrupt() → void
Asks the program to stop, as Ctrl+C would.
kill() → void
Ends the program straight away.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stop(Duration timeout) → Future<void>
Stops the program with interrupt and waits up to timeout for it to finish writing, then kills it.
toString() → String
A string representation of this object.
inherited
waitFor(bool test(String line), Duration timeout) → Future<bool>
Waits for the program to print a line that passes test.

Operators

operator ==(Object other) → bool
The equality operator.
inherited