NotificationButtonActionCallback typedef
NotificationButtonActionCallback =
Future<void> Function(String actionId, String? route, Map<String, dynamic> ? data)
Callback type for handling notification action button taps.
Called when user taps an action button on a notification.
actionId: The ID of the action that was tappedroute: The route associated with the notificationdata: Additional data from the notification
Implementation
typedef NotificationButtonActionCallback = Future<void> Function(
String actionId,
String? route,
Map<String, dynamic>? data,
);