DTDManager class

Manages a connection to the Dart Tooling Daemon.

Constructors

DTDManager()

Properties

connection ValueListenable<DartToolingDaemon?>
no setter
connectionState ValueListenable<DTDConnectionState>
The current state of the connection.
no setter
hasConnection bool
Whether the DTDManager is connected to a running instance of the DTD.
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
serviceRegistrationBroadcastStream Stream<DTDEvent>
A stream of CoreDtdServiceConstants.serviceRegisteredKind and CoreDtdServiceConstants.serviceUnregisteredKind events.
no setter
uri Uri?
The URI of the current DTD connection.
no setter

Methods

connect(Uri uri, {void onError(Object, StackTrace?)?, int maxRetries = 5}) Future<void>
Sets the Dart Tooling Daemon connection to point to uri.
connectDtdImpl(Uri uri) Future<DartToolingDaemon>
A wrapper around connecting to DTD to allow tests to intercept the connection.
disconnect() Future<void>
Closes and unsets the Dart Tooling Daemon connection, if one is set.
disconnectImpl({bool allowReconnect = false}) Future<void>
Closes and unsets the Dart Tooling Daemon connection, if one is set.
dispose() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
projectRoots({int? depth = defaultGetProjectRootsDepth, bool forceRefresh = false}) Future<UriList?>
Returns the project roots for the Dart Tooling Daemon connection.
reconnect() Future<void>
Triggers a reconnect to the last connected URI if the current state is ConnectionFailedDTDState (and there was a previous connection).
toString() String
A string representation of this object.
inherited
workspaceRoots({bool forceRefresh = false}) Future<IDEWorkspaceRoots?>
Returns the workspace roots for the Dart Tooling Daemon connection.

Operators

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