NotificationRouteCallback typedef
NotificationRouteCallback =
String? Function({required bool isFromNotification, required Map<String, dynamic> payload})
A callback function that determines the route based on notification launch status.
Returns the route to navigate to, or null to use the default initial route.
Implementation
typedef NotificationRouteCallback = String? Function({
required bool isFromNotification,
required Map<String, dynamic> payload,
});