stopEcgAcquisition method

  1. @override
Future<void> stopEcgAcquisition()
override

ECGの取得を停止

Implementation

@override
Future<void> stopEcgAcquisition() async {
  // ECGの取得が開始されていない場合
  if (state.isEcgAcquisitionStarted == false) {
    return;
  }
  // ECGの取得を停止
  await _ecgStreamSubscription?.cancel();
  state = state.copyWith(isEcgAcquisitionStarted: false);
}