dispose method

Future<void> dispose()

Implementation

Future<void> dispose() async {
  await context.launch.unregisterProvider(launchProviderFlutter);
  await stop();
  await _disconnectVmService();
  if (_hasDebugSession) {
    await context.debug.endSession(_debugSessionId);
    _hasDebugSession = false;
  }
  await _channel?.dispose();

  await _devToolsPanel?.dispose();
  _devToolsPanel = null;
}