FakeFlutterTool class final

A flutter run --machine that says what say is given and records what it is sent.

A test makes one with FakeFlutterTool() in place of the real tool.

Implemented types

Constructors

FakeFlutterTool()

Properties

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
sent → List<Map<String, Object?>>
Every message sent to the tool, in order.
final
stderr → Stream<List<int>>
The standard error stream of the process as a Stream.
no setteroverride
stdin → IOSink
The standard input stream of the process as an IOSink.
no setteroverride
stdout → Stream<List<int>>
The standard output stream of the process as a Stream.
no setteroverride

Methods

answer(int id, Object? result) → void
The answer to request id.
event(String event, Map<String, Object?> params) → void
A daemon event.
exit(int code) → void
The tool exiting with code; a second exit is ignored.
kill([ProcessSignal signal = ProcessSignal.sigterm]) → bool
Kills the process.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
running({String appId = 'a1', String wsUri = 'ws://game'}) → void
The tool announcing a game running with its VM service at wsUri.
say(String line) → void
A line on the tool's stdout.
toString() → String
A string representation of this object.
inherited

Operators

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