VmBridge class
Owns the VM Service WebSocket and evaluates Dart inside the app isolate.
Constructors
- VmBridge()
Properties
- connectedUri → String?
-
WebSocket URI of the current session, or
nullwhen disconnected.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- isConnected → bool
-
Whether a VM Service session and an isolate are both selected.
no setter
- rootLibraryId → String
-
VM object id of the app's root library.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supportsClassList → bool
-
Whether this isolate implements
getClassList.no setter
Methods
-
connect(
String wsUri) → Future< void> -
Opens
wsUri, selects themain()isolate, and caches its root library. -
disconnect(
) → Future< void> - Closes the current session and clears cached isolate state.
-
evaluate(
String expression, {String? libraryUri}) → Future< Response> -
Evaluates
expressionin one library scope. -
getClassList(
) → Future< ClassList?> -
Returns the isolate's class list, or
nullwhen the VM does not implementgetClassList. -
getInstances(
String classId, int limit, {bool? includeSubclasses}) → Future< InstanceSet?> -
Returns up to
limitlive instances ofclassId. -
getIsolate(
) → Future< Isolate> - Returns the connected isolate.
-
getObject(
String objectId) → Future< Obj> -
Returns the VM object identified by
objectId. -
getRootLibrary(
) → Future< Library> - Returns the app's root library.
-
invoke(
String targetId, String selector, List< String> argumentIds) → Future<Response> -
Invokes
selectorontargetIdwithargumentIds. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
probe(
String expression) → Future< String?> -
Evaluates
expressionand returns its value as a string, or null when the expression is not a value expression. -
targetIdFor(
String? libraryUri) → Future< String> - Resolves a library URI to a VM object id, defaulting to the app's root library.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited