BuildDaemonClient class

A client of the build daemon.

Handles starting and connecting to the build daemon.

Example: https://pub.dev/packages/build_daemon#-example-tab-

Properties

buildResults Stream<BuildResults>
no setter
finished Future<void>
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shutdownNotifications Stream<ShutdownNotification>
no setter

Methods

close() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerBuildTarget(BuildTarget target) → void
Registers a build target to be built upon any file change.
startBuild() → void
Builds all registered targets, including those not from this client.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

connect(String workingDirectory, List<String> daemonCommand, {Serializers? serializersOverride, void logHandler(ServerLog)?, bool includeParentEnvironment = true, Map<String, String>? environment, BuildMode buildMode = BuildMode.Auto}) Future<BuildDaemonClient>
Connects to the current daemon instance.