setCaptureModeEnabled method
Implementation
Future<void> setCaptureModeEnabled(bool enabled) async {
if (!isDigiaDebugBuild() && enabled) return;
if (!enabled) _captureSession.cancelActiveTraversal();
captureModeNotifier.value = enabled;
await _componentRegistry.setEnabled(enabled);
if (enabled) await DigiaDebugOverlayController.instance.setVisible(true);
}