InspectorClient class final
Typed client for the ext.basalt.* inspector protocol.
The transport-agnostic mirror of InspectorService: it encodes arguments,
delegates the round-trip to an InspectorTransport, and decodes each
response into the shared DTOs. Consumers (the DevTools extension, the MCP
server) reuse this class and supply only their own InspectorTransport.
Constructors
- InspectorClient(InspectorTransport _transport)
-
Creates a client that talks over the given InspectorTransport.
const
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
-
getSchema(
String id) → Future< SchemaDto> -
Introspects the schema of instance
id. -
getTableData(
String id, {required String table, int limit = 50, int offset = 0, String? orderBy, bool desc = false, List< ColumnFilter> filters = const []}) → Future<TablePageDto> -
Reads one page of rows from
tableon instanceid. -
listInstances(
) → Future< List< RegisteredInstance> > - Lists the connections registered for inspection in the target app.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
runSql(
String id, String sql, [List< Object?> params = const []]) → Future<SqlResultDto> -
Runs an arbitrary SQL statement on instance
idwith boundparams. -
toString(
) → String -
A string representation of this object.
inherited
-
updateRow(
String id, {required String table, required Map< String, Object?> key, required Map<String, Object?> changes}) → Future<void> -
Updates a single row of
tableon instanceid:changeswherekey.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited