onClose method
Implementation
Future<void> onClose() async {
await _foregroundNotificationSubscription?.cancel();
await _notificationOpenSubscription?.cancel();
}
Future<void> onClose() async {
await _foregroundNotificationSubscription?.cancel();
await _notificationOpenSubscription?.cancel();
}