DartVmDevtoolsService class

Bridges RPC calls from TypeScript server to Flutter's ServiceManager and ServiceExtensionManager.

This simplified version focuses only on VM service initialization and handling basic service functions.

Mixed-in types
Available extensions

Constructors

DartVmDevtoolsService()
Bridges RPC calls from TypeScript server to Flutter's ServiceManager and ServiceExtensionManager.

Properties

hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
serviceManager → ServiceManager<VmService>
Gets the current service manager
no setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
callServiceExtension(String extension, {required Map<String, dynamic> args}) → Future<RPCResponse>
callServiceExtensionRaw(String extension, {required Map<String, dynamic> args}) → Future<Response>
connectToVmService([Uri? uri]) → Future<bool>
Connect to a VM service
disconnectFromVmService() → Future<void>
Disconnect from the VM service
dispose() → void
Discards any resources used by the object.
inherited
getRootWidget() → Future<RPCResponse>

Available on DartVmDevtoolsService, provided by the DevtoolsServiceExtension extension

getVmConnectedState(Map<String, dynamic> params) → (bool, String?)
Gets the current connection state
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
setState(VoidCallback fn) → void

Available on ChangeNotifier, provided by the AppChangeNotifierX extension

takeScreenshot(Map<String, dynamic> params) → Future<RPCResponse>

Available on DartVmDevtoolsService, provided by the DevtoolsServiceExtension extension

Take a screenshot of the current UI
toString() → String
A string representation of this object.
inherited

Operators

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