ChatItem class abstract

Item posted in a Chat (its content).

Implementers
Available extensions

Constructors

ChatItem(ChatItemId id, ChatId chatId, User author, PreciseDateTime at, {SendingStatus? status})
ChatItem.fromJson(Map<String, dynamic> json)
Constructs a ChatItem from the provided json.
factory

Properties

at PreciseDateTime
PreciseDateTime when this ChatItem was posted.
getter/setter pair
author User
User who posted this ChatItem.
final
chatId ChatId
ID of the Chat this ChatItem was posted in.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id ChatItemId
Unique ID of this ChatItem.
final
key ChatItemKey
Returns combined at and id unique identifier of this ChatItem.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status Rx<SendingStatus>
SendingStatus of this ChatItem.
final

Methods

isEditable(Chat chat, UserId me) bool

Available on ChatItem, provided by the IsChatItemEditable extension

Indicates whether this ChatItem is editable.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns a Map representing this ChatItem.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited