ServiceManager<T extends VmService> class
Methods
-
callLifecycleCallbacks(ServiceManagerLifecycle lifecycle, T? service)
→ FutureOr<void>
-
-
callService(String name, {String? isolateId, Map<String, dynamic>? args})
→ Future<Response>
-
Call a service that is registered by exactly one client.
-
callServiceExtensionOnMainIsolate(String method, {Map<String, dynamic>? args})
→ Future<Response>
-
-
callServiceOnMainIsolate(String name)
→ Future<Response>
-
-
connectedAppPackageRoot(DTDManager dtdManager)
→ Future<Uri?>
-
Returns the package root URI for the connected app.
-
libraryUriAvailable(String uri)
→ Future<bool>
-
-
libraryUriAvailableNow(String? uri)
→ bool
-
-
mainIsolateRootLibraryUriAsString()
→ Future<String?>
-
Returns a file URI String for the root library of the connected app's main
isolate.
-
manuallyDisconnect()
→ Future<void>
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
performHotReload()
→ Future<void>
-
This can throw an
RPCError
.
-
performHotRestart()
→ Future<void>
-
This can throw an
RPCError
.
-
registeredServiceListenable(String name)
→ ValueListenable<bool>
-
-
registerLifecycleCallback(ServiceManagerLifecycle lifecycle, ServiceManagerCallback<T> callback)
→ void
-
Registers a callback that will be called at a particular phase in the
lifecycle of opening or closing a
VmService
connection.
-
registerOverride(ServiceManagerOverride override, ServiceManagerCallback<T> callback)
→ void
-
Registers a callback that will be called in place of the default
ServiceManager logic for a codeblock defined by a
ServiceManagerOverride.
-
rootInfoNow()
→ RootInfo
-
-
rootPackageDirectoryForMainIsolate(DTDManager dtdManager)
→ Future<String?>
-
Returns the root package directory for the main isolate.
-
runDeviceBusyTask<V>(Future<V> task)
→ Future<V>
-
Set the device as busy during the duration of the given async task.
-
setDeviceBusy(bool isBusy)
→ void
-
Set whether the device is currently busy - performing a long-lived,
blocking operation.
-
toString()
→ String
-
A string representation of this object.
inherited
-
tryToDetectMainRootInfo()
→ Future<RootInfo?>
-
-
vmServiceClosed({ConnectedState connectionState = const ConnectedState(false)})
→ FutureOr<void>
-
Shuts down the service manager's current vm service connection.
-
vmServiceOpened(T service, {required Future<void> onClosed})
→ Future<void>
-
Initializes the service manager for a new vm service connection
service
.
-
waitUntilNotPaused()
→ Future<void>
-