DependencyBoxDevTools class abstract final

Optional runtime integration that exposes DependencyBox inspection data via Dart VM Service extensions.

This integration is 100% opt-in. When not enabled, no service extensions are registered, no timers or listeners are allocated, and zero overhead is incurred.

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

activeContainerCount → int
Returns the number of currently tracked living containers.
no setter
isEnabled → bool
Whether the DevTools inspection service is currently enabled.
no setter

Static Methods

disable() → void
Disables DevTools inspection and clears all tracked container references.
enable([DependencyBox? box]) → void
Enables DevTools inspection and registers the specified box.
handleServiceCall(String method, Map<String, String> parameters) → Future<ServiceExtensionResponse>
Manually dispatches a service extension call (useful for unit testing and direct invocation).
register(DependencyBox box) → void
Registers box for DevTools inspection.
unregister(DependencyBox box) → void
Unregisters box from DevTools inspection.

Constants

getRegistrationsMethod → const String
VM service extension method for retrieving registrations only.
getScopesMethod → const String
VM service extension method for retrieving registered scopes only.
getSnapshotAlias → const String
Snake_case alias for getSnapshotMethod.
getSnapshotMethod → const String
The primary VM service extension method for retrieving a full container snapshot.
pingMethod → const String
VM service extension method for pinging the inspection service.