ChatItem constructor

ChatItem(
  1. ChatItemId id,
  2. ChatId chatId,
  3. User author,
  4. PreciseDateTime at, {
  5. SendingStatus? status,
})

Implementation

ChatItem(this.id, this.chatId, this.author, this.at, {SendingStatus? status})
  : status = Rx(
      status ?? (id.isLocal ? SendingStatus.error : SendingStatus.sent),
    );