fromIds method Null safety

MessageSequence fromIds(
  1. List<int> ids,
  2. {bool isUid = false}
)

Convenience method to creating a sequence from a list of ids.

Optionally specify the if the ID is a UID with isUid, defaults to false.

Implementation

static MessageSequence fromIds(List<int> ids, {bool isUid = false}) {
  final sequence = MessageSequence(isUidSequence: isUid);
  sequence.addList(ids);
  return sequence;
}