core/vm_service library

Functions

checkFdbHelper() Future<String?>
Checks if fdb_helper extensions are registered in the running app.
findAllIsolateIds() Future<List<String>>
Returns all isolate IDs from the VM service.
findFlutterIsolateId() Future<String?>
Finds the Flutter UI isolate by trying each isolate until one returns a non-null widget tree. Returns the isolate ID or null.
unwrapExtensionResult(Map<String, dynamic> response) → dynamic
Unwraps the VM service extension response. Extension responses have the shape: {"result": {"result": "<json string>", "type": "_extensionType"}} The inner "result" is a JSON-encoded string that needs to be decoded.
unwrapRawExtensionResult(Map<String, dynamic> response) → dynamic
Unwraps a raw service extension response (from dart:developer.registerExtension). Shape: {"result": {"type": "_extensionType", "method": "...", ...actual fields...}} The success path is NOT double-encoded like Flutter inspector extensions.
vmServiceCall(String method, {Map<String, dynamic> params = const {}, Duration timeout = const Duration(seconds: 30)}) Future<Map<String, dynamic>>
Sends a JSON-RPC request to the Flutter VM service over websocket. Returns the parsed JSON response. Throws AppDiedException when the app process is detected as dead, or on connection failure / timeout.