deactivate method

  1. @protected
  2. @mustCallSuper
Future<void> deactivate()

Called when this client manager is being deactivated and potentially stopped by the OS.

Implementations of this method should start with a call to the inherited method, as in super.deactivate().

Implementation

@protected
@mustCallSuper
Future<void> deactivate() async {
  for (var study in studies) {
    await getStudyRuntime(study)?.saveDeployment();
  }
}