close method
FR-DASH-008
Implementation
Future<void> close() async {
for (final bridge in _bridges) {
await bridge.dispose();
}
_bridges.clear();
final bundle = _currentBundle;
if (bundle == null) {
_currentRuntime = null;
return;
}
await _runtime.removeRuntime(_runtimeHandle(bundle.id));
_currentRuntime = null;
_currentBundle = null;
_logger.info('Dashboard closed');
}