stopNotifications method

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

Implementation

@override
Future<void> stopNotifications() async {
  final characteristic = _getCharacteristic();
  await backend.setCharacteristicNotifyState(peripheral, characteristic!,
      state: false);
  await _subscription?.cancel();
}