terminatedNotificationHandler function
Implementation
@pragma('vm:entry-point')
Future<String?> terminatedNotificationHandler() async {
return flutterLocalNotificationsPlugin.getNotificationAppLaunchDetails().then(
(details) {
if ((details?.didNotificationLaunchApp ?? false) &&
details?.notificationResponse?.payload != null) {
debugPrint('RouterNotifier: Notification detected');
return details!.notificationResponse!.payload;
}
return null;
},
);
}