DevelopService class
Orchestrates a patrol develop session.
This service contains the core logic previously in DevelopCommand.run(),
extracted so it can be called from both the CLI and the MCP server.
Constructors
-
DevelopService({required DeviceFinder deviceFinder, required TestFinderFactory testFinderFactory, required TestBundler testBundler, required DartDefinesReader dartDefinesReader, required CompatibilityChecker compatibilityChecker, required PubspecReader pubspecReader, required AndroidTestBackend androidTestBackend, required IOSTestBackend iosTestBackend, required MacOSTestBackend macosTestBackend, required WebTestBackend webTestBackend, required FlutterTool flutterTool, required Logger logger, required Stream<
List< stdin, void onTestsCompleted(TestCompletionResult result)?, void onLogEntry(Entry entry)?})int> >
Properties
- device → Device?
-
The device discovered during the last run call.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- onLogEntry → void Function(Entry entry)?
-
final
- onTestsCompleted → void Function(TestCompletionResult result)?
-
Optional callback invoked when the test backend process finishes,
before run itself returns. This allows callers (e.g. MCP) to react
to test completion without waiting for the full develop session
(including flutter attach) to tear down.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- webDebuggerPort → int?
-
The Chrome DevTools debugger port, if running a web session.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
DevelopOptions options) → Future< void> - Runs the full develop flow: discover device, read config, bundle test, build, execute, and attach for hot restart.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited