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 tapped
  • route: The route associated with the notification
  • data: Additional data from the notification

Implementation

typedef NotificationButtonActionCallback = Future<void> Function(
  String actionId,
  String? route,
  Map<String, dynamic>? data,
);