fromRange static method

MessageSequence fromRange(
  1. int start,
  2. int end, {
  3. bool isUidSequence = false,
})

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

Implementation

static MessageSequence fromRange(int start, int end,
    {bool isUidSequence = false}) {
  final sequence = MessageSequence(isUidSequence: isUidSequence);
  sequence.addRange(start, end);
  return sequence;
}