PinnedEvent class

A pinned message event that tracks when a message was pinned/unpinned.

Unlike the isPinned flag on Message which only tracks current state, PinnedEvent maintains a history of pin/unpin actions for displaying notifications in the chat stream.

Constructors

PinnedEvent({required String id, required String messageId, required String roomId, required String pinnedBy, required DateTime pinnedAt, DateTime? unpinnedAt})
Creates a pinned event.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
Unique event ID.
final
isActive bool
Whether this pin is currently active.
no setter
messageId String
ID of the message that was pinned.
final
pinnedAt DateTime
When the pin action occurred (for positioning in chat stream).
final
pinnedBy String
User ID who pinned the message.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
roomId String
Room ID where the message belongs.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
unpinnedAt DateTime?
When the message was unpinned (null if still pinned).
final

Methods

copyWith({String? id, String? messageId, String? roomId, String? pinnedBy, DateTime? pinnedAt, DateTime? unpinnedAt}) PinnedEvent
Creates a copy with updated fields.
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