stopListening method
Cancel the StreamSubscription and stop listening.
Implementation
Future stopListening() async {
if (_subscription != null) {
await _subscription!.cancel();
}
}
Cancel the StreamSubscription and stop listening.
Future stopListening() async {
if (_subscription != null) {
await _subscription!.cancel();
}
}