stopNotifications method

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

Implementation

@override
Future<void> stopNotifications() async {
  final characteristic = await _getCharacteristic();
  await characteristic.stopNotifications();
  await _subscription?.cancel();
}