FakeProcess class

A fake process that can be used to interact with a process "started" by the FakeProcessManager.

Inheritance
Implemented types

Constructors

FakeProcess(ProcessResult result, {void stdinResults(String input), bool isPeriodic: false})

Properties

desiredExitCode int
final
exitCode Future<int>
Returns a Future which completes with the exit code of the process when the process completes. [...]
read-only, override
hashCode int
The hash code for this object. [...]
read-only, inherited
pid int
Returns the process id of the process.
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
stderr Stream<List<int>>
Returns the standard error stream of the process as a Stream.
read-only, override
stderrStream Stream<List<int>>
final
stdin IOSink
Returns the standard input stream of the process as an IOSink.
read-only, override
stdinSink IOSink
final
stdout Stream<List<int>>
Returns the standard output stream of the process as a Stream.
read-only, override
stdoutStream Stream<List<int>>
read / write

Methods

kill([ProcessSignal signal = ProcessSignal.sigterm]) bool
Kills the process. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
@visibleForTesting, inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited