dispose method
void
dispose()
Disposes the DevTools service and releases all resources.
Cleans up the UI inspector, removes context mappings, and terminates the inspector isolate server.
Implementation
void dispose() {
if (DebugFlags.enableDevToolsLogs) {
devToolsLogger.fine('[DevTools] dispose context=${_context?.contextId}');
}
_uiInspector?.dispose();
if (_context != null) {
_contextDevToolMap.remove(_context!.contextId);
_context!.dispose();
}
_context = null;
_controller = null;
}