KaiselInspector class

Debug-only registry that aggregates live roots and publishes navigation snapshots to DevTools over the VM service.

Dormant until something registers — the kaisel delegate registers itself in kDebugMode only, so release builds never reach this. Publishing is coalesced into one event per microtask.

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

commandJson(String command) → Future<String>
Apply the JSON-encoded write command to the first registered root; returns the result as a JSON string ({ok, message}).
commandResponse(String method, Map<String, String> parameters) → Future<ServiceExtensionResponse>
Service-extension handler for ext.kaisel.command: applies a write command that drives the app. See commandJson.
decodeJson(String url) → String
A deep-link preview as a JSON string ({ok, lines}) — the body of the ext.kaisel.decode service extension. Decodes url through the first registered root's codec, without navigating.
decodeResponse(String method, Map<String, String> parameters) → Future<ServiceExtensionResponse>
Service-extension handler for ext.kaisel.decode: a read-only deep-link preview that decodes a URL without navigating.
deregister(int token) → void
Deregister the root previously registered under token.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(KaiselInspectable root) → int
Register root. Returns a token to pass to deregister. Subscribes to the root's revisions and schedules an immediate publish.
snapshot() → KaiselNavSnapshot
Build a snapshot of every registered root. Synchronous; used both for the pushed event and the on-demand service extension.
snapshotJson() → String
The current snapshot as a JSON string — the body of the ext.kaisel.snapshot service extension.
snapshotResponse(String method, Map<String, String> parameters) → Future<ServiceExtensionResponse>
Service-extension handler for ext.kaisel.snapshot.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

instance → KaiselInspector
The shared inspector instance.
final