FakeProcess class

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

Implemented types

Constructors

FakeProcess(ProcessResult result, StdinResults stdinResults)

Properties

desiredExitCode int
final
exitCode Future<int>
A Future which completes with the exit code of the process when the process completes.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
pid int
The process id of the process.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stderr Stream<List<int>>
The standard error stream of the process as a Stream.
no setteroverride
stderrStream Stream<List<int>>
final
stdin IOSink
The standard input stream of the process as an IOSink.
no setteroverride
stdinSink IOSink
final
stdout Stream<List<int>>
The standard output stream of the process as a Stream.
no setteroverride
stdoutStream Stream<List<int>>
final

Methods

kill([ProcessSignal signal = ProcessSignal.sigterm]) bool
Kills the process.
override
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