CometChatNotificationDetails class
Parsed notificationDetails from a CometChat push payload.
Contains all common fields shared between chat and call payloads, plus optional call-specific fields.
Constructors
-
CometChatNotificationDetails({required String title, required String body, required String sender, required String senderName, String? senderAvatar, required String receiver, required String receiverName, String? receiverAvatar, required CometChatReceiverType receiverType, required String tag, required String conversationId, required CometChatPayloadType type, required String sentAt, Map<
String, dynamic> ? message, CometChatCallAction? callAction, String? sessionId, CometChatCallType? callType, Map<String, dynamic> ? custom}) -
Creates a CometChatNotificationDetails instance.
const
Properties
- body → String
-
The notification display body.
final
- callAction → CometChatCallAction?
-
The call action (call-specific).
final
- callType → CometChatCallType?
-
The call type — audio or video (call-specific).
final
- conversationId → String
-
The conversation identifier.
final
-
custom
→ Map<
String, dynamic> ? -
Custom JSON data, if configured.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCall → bool
-
Whether this payload represents a call.
no setter
- isCallDismissal → bool
-
Whether this is a call cancellation/end that should dismiss call UI.
no setter
- isChat → bool
-
Whether this payload represents a chat message.
no setter
- isIncomingCall → bool
-
Whether this is an incoming call that should show call UI.
no setter
-
message
→ Map<
String, dynamic> ? -
The full CometChat message object, if enabled (chat-specific).
final
- receiver → String
-
The receiver UID or GUID.
final
- receiverAvatar → String?
-
The receiver avatar URL, if available.
final
- receiverName → String
-
The receiver display name.
final
- receiverType → CometChatReceiverType
-
The type of receiver (user or group).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sender → String
-
The sender UID.
final
- senderAvatar → String?
-
The sender avatar URL, if available.
final
- senderName → String
-
The sender display name.
final
- sentAt → String
-
The timestamp in milliseconds as a string.
final
- sessionId → String?
-
The unique call session ID (call-specific).
final
- tag → String
-
The message/notification ID used as a notification tag.
final
- title → String
-
The notification display title.
final
- type → CometChatPayloadType
-
The payload type (chat or call).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited