InboxMessage class

Represents an inbox message for a user.

Inbox messages are persistent messages that can be displayed in a message center or inbox UI. They support read/unread states, expiration, and custom properties.

Constructors

InboxMessage({required String queueId, String? deliveryId, DateTime? expiry, required DateTime sentAt, required List<String> topics, required String type, required bool opened, int? priority, required Map<String, dynamic> properties})
InboxMessage.fromMap(Map<String, dynamic> map)
Creates an InboxMessage from a map received from native platform
factory

Properties

deliveryId → String?
Unique identifier for this message delivery
final
expiry → DateTime?
Optional expiration date. Messages may be hidden after this date.
final
hashCode → int
The hash code for this object.
no setteroverride
opened → bool
Whether the user has opened/read this message
final
priority → int?
Optional priority for message ordering. Lower values = higher priority (e.g., 1 is higher priority than 100)
final
properties → Map<String, dynamic>
Custom key-value properties associated with this message
final
queueId → String
Internal queue identifier (for SDK use)
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sentAt → DateTime
Date when the message was sent
final
topics → List<String>
List of topic identifiers associated with this message. Empty list if no topics.
final
type → String
Message type identifier
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
Converts this InboxMessage to a map for sending to native platform
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override