fromLast method Null safety

MessageSequence fromLast()

Convenience method for getting the sequence for the last message.

Implementation

static MessageSequence fromLast() {
  final sequence = MessageSequence();
  sequence.addLast();
  return sequence;
}