readsOf method

List<Read> readsOf({
  1. required Message message,
})

Returns the list of Reads that have marked the given msg as read.

The Read is considered to have read the message if:

  • The read user is not the sender of the message.
  • The read's lastRead is after or equal to the message's createdAt.

Implementation

List<Read> readsOf({required Message message}) {
  return read.readsOf(message: message);
}