DTDManager class

Manages a connection to the Dart Tooling Daemon.

Constructors

DTDManager()

Properties

connection ValueListenable<DartToolingDaemon?>
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
uri Uri?
The URI of the current DTD connection.
no setter

Methods

connect(Uri uri, {void onError(Object, StackTrace?)?}) Future<void>
Sets the Dart Tooling Daemon connection to point to uri.
disconnect() 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.
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