MessageNotification class Tracking events
Event to track a push notification or similar message.
Not supported on Web.
Constructors
-
MessageNotification({required String title, required String body, required MessageNotificationTrigger trigger, String? action, List<
MessageNotificationAttachment> ? attachments, List<String> ? bodyLocArgs, String? bodyLocKey, String? category, bool? contentAvailable, String? group, String? icon, int? notificationCount, String? notificationTimestamp, String? sound, String? subtitle, String? tag, String? threadIdentifier, List<String> ? titleLocArgs, String? titleLocKey}) -
const
Properties
- action → String?
-
The action associated with the notification.
final
-
attachments
→ List<
MessageNotificationAttachment> ? -
Attachments added to the notification.
final
- body → String
-
The notification's body.
final
-
bodyLocArgs
→ List<
String> ? -
Variable string values to appear in place of the format specifiers in bodyLocKey.
final
- bodyLocKey → String?
-
The key for the localized body string.
final
- category → String?
-
The category of the notification.
final
- contentAvailable → bool?
-
Indicates whether notification content can be modified before delivery.
final
- group → String?
-
The group of the notification.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → String?
-
The icon of the notification.
final
- notificationCount → int?
-
The number to display on the app icon badge.
final
- notificationTimestamp → String?
-
The ISO 8601 timestamp when the notification was delivered.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sound → String?
-
The sound played when the device receives the notification.
final
- subtitle → String?
-
A subtitle providing additional context.
final
- tag → String?
-
An identifier similar to the thread identifier.
final
- threadIdentifier → String?
-
An identifier for grouping related notifications.
final
- title → String
-
The notification's title.
final
-
titleLocArgs
→ List<
String> ? -
Variable string values for titleLocKey.
final
- titleLocKey → String?
-
The key for the localized title string.
final
- trigger → MessageNotificationTrigger
-
The trigger that caused the notification to be delivered.
final
Methods
-
endpoint(
) → String -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object?> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited