messageIdAt method

int messageIdAt(
  1. int messageIndex
)

Retrieves the message ID at the specified messageIndex.

Note that the messageIndex is expected to be based on full messageSequence, where index 0 is newest message and size-1 is the oldest message.

Implementation

int messageIdAt(int messageIndex) {
  final index = length - messageIndex - 1;

  return pagedSequence.sequence.elementAt(index);
}