BasaltDevTools class final

Process-wide registry of live Connections exposed to the DevTools inspector.

This is dev-only tooling: connections only become visible after an explicit register call, and the underlying ext.basalt.* service extensions require the VM service (debug / --observe) — nothing is exposed in a release build that never calls register.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instances List<RegisteredInstance>
The registered instances, in registration order.
no setter

Static Methods

clear() → void
Drops all registered instances (does not close the connections).
connection(String id) Connection?
Looks up the live connection for an instance id, or null if unknown.
register(Connection conn, {String? name}) String
Registers conn so it shows up as a selectable instance in the inspector.
unregister(String id) → void
Removes a previously registered instance.