fromRangeToLast method Null safety

MessageSequence fromRangeToLast(
  1. int start,
  2. {bool isUidSequence = false}
)

Convenience method for getting the sequence for a single range from start to the last message inclusive.

Implementation

static MessageSequence fromRangeToLast(int start,
    {bool isUidSequence = false}) {
  final sequence = MessageSequence(isUidSequence: isUidSequence);
  sequence.addRangeToLast(start);
  return sequence;
}