utils/firebase_utils library
Classes
- AnalyticsCallOptions
- Additional options that can be passed to Analytics method calls. Note; these options are only used on the web.
- AnalyticsEventItem
- Interface that defines the required attributes of an analytics Item. https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.Param https://developers.google.com/analytics/devguides/collection/ga4/reference/events
- AndroidNotification
- Android specific properties of a RemoteNotification.
- AppleNotification
- Apple specific properties of a RemoteNotification.
- AppleNotificationSound
- Represents the sound property for AppleNotification
- Firebase
- The entry point for accessing Firebase.
- FirebaseAnalytics
- Firebase Analytics API.
- FirebaseAnalyticsAndroid
- Android-specific analytics API.
- FirebaseAnalyticsObserver
- A NavigatorObserver that sends events to Firebase Analytics when the currently active ModalRoute changes.
- FirebaseApp
- Represents a single Firebase app instance.
- FirebaseCrashlytics
- The entry point for accessing a FirebaseCrashlytics.
- FirebaseMessaging
- The FirebaseMessaging entry point.
- FirebaseOptions
- The options used to configure a Firebase app.
- FirebaseUtils
- NotificationSettings
- Represents the devices notification settings.
- RemoteMessage
- A class representing a message sent from Firebase Cloud Messaging.
- RemoteNotification
- A class representing a notification which has been construted and sent to the device via FCM.
- WebNotification
- Web specific properties of a RemoteNotification.
Enums
- AndroidNotificationPriority
- An enum representing a notification priority on Android.
- AndroidNotificationVisibility
- An enum representing the visibility level of a notification on Android.
- AppleNotificationSetting
- An enum representing a notification setting for this app on the device.
- AppleShowPreviewSetting
- An enum representing the show previews notification setting for this app on the device.
- AuthorizationStatus
- Represents the current status of the platforms notification permissions.
Constants
- defaultFirebaseAppName → const String
- The default Firebase application name.
- valueAndCurrencyMustBeTogetherError → const String
Functions
-
defaultNameExtractor(
RouteSettings settings) → String? -
defaultRouteFilter(
Route? route) → bool -
filterOutNulls(
Map< String, Object?> parameters) → Map<String, Object> -
Creates a new map containing all of the key/value pairs from
parameters
except those whose value isnull
.
Typedefs
-
BackgroundMessageHandler
= Future<
void> Function(RemoteMessage message) - Defines a handler for incoming remote message payloads.
- RouteFilter = bool Function(Route? route)
- RouteFilter allows to filter out routes that should not be tracked.
- ScreenNameExtractor = String? Function(RouteSettings settings)
- Signature for a function that extracts a screen name from RouteSettings.
Exceptions / Errors
- FirebaseException
- A generic class which provides exceptions in a Firebase-friendly format to users.