stop method
Stops listening for messages on this BroadcastReceiver, preventing it from being started again.
Implementation
Future<void> stop() async {
if (!isListening) {
return;
}
await _BroadcastChannel.instance.stopReceiver(this);
await _subscription!.cancel();
_subscription = null;
}