flutter_fcm_actions library
Classes
- ActionInterceptor
-
Runs around action execution. Returning
nullcancels the action. - DebugFcmActionsLogger
- Default logger that uses debugPrint and suppresses verbose release logs.
- FcmActions
- One-call facade for the common single-Firebase-app use case.
- FcmActionsClient
- Injectable, independently disposable package API.
- FcmActionsConfig
- Immutable initialization options for FcmActionsClient.
- FcmActionsLogger
- Receives package diagnostics. Implementations must not throw.
- NotificationAction
- A platform-neutral notification action.
- NotificationActionEvent
- Rich event emitted for action taps and inline replies.
- NotificationActionHandler
- Object-oriented alternative to a callback action handler.
- NotificationAnalytics
- Optional analytics adapter (Firebase Analytics, Mixpanel, or custom).
- NotificationChannel
- Cross-platform channel configuration.
- NotificationEvent
- Emitted whenever a notification is received, displayed, opened, or removed.
- NotificationInterceptor
- Runs around notification display.
- NotificationMessage
- A normalized FCM or local notification.
- NotificationMiddleware
- Composable action processing stage.
- RouteMapper
-
Maps a payload
typeto a named Flutter route.
Enums
- ActionExecutionMode
- Whether an action runs in the UI isolate, a background isolate, or either.
- ChannelImportance
- Android notification importance abstraction.
- FcmLogLevel
- Package log verbosity.
- NotificationInteraction
- The kind of user interaction with a notification.
- NotificationPlatform
- The operating system that produced an event.
- NotificationState
- The lifecycle context in which a notification event was observed.
Extensions
- NotificationActionEventPatterns on NotificationActionEvent
- Adds pattern-matching-related methods to NotificationActionEvent.
- NotificationActionPatterns on NotificationAction
- Adds pattern-matching-related methods to NotificationAction.
- NotificationChannelPatterns on NotificationChannel
- Adds pattern-matching-related methods to NotificationChannel.
- NotificationEventPatterns on NotificationEvent
- Adds pattern-matching-related methods to NotificationEvent.
- NotificationMessagePatterns on NotificationMessage
- Adds pattern-matching-related methods to NotificationMessage.
- RouteMapperPatterns on RouteMapper
- Adds pattern-matching-related methods to RouteMapper.
Typedefs
-
FcmActionsInitializeCallback
= FutureOr<
void> Function(NotificationActionEvent action, Map<String, Object?> data) -
NotificationActionCallback
= Future<
void> Function(NotificationActionEvent event) -
NotificationEventCallback
= Future<
void> Function(NotificationEvent event)
Exceptions / Errors
- DuplicateNotificationException
- FcmActionsException
- Base class for recoverable package failures.
- FcmActionsInitializationException
- InvalidNotificationPayloadException
- UnregisteredActionException