toMessageSequence method Null safety

MessageSequence toMessageSequence(
  1. {SequenceNodeSelectionMode mode = SequenceNodeSelectionMode.all}
)

Converts this node to a message sequence in the specified mode.

The mode defaults to all message IDs.

Implementation

MessageSequence toMessageSequence(
    {SequenceNodeSelectionMode mode = SequenceNodeSelectionMode.all}) {
  final sequence = MessageSequence(isUidSequence: isUid);
  _addToSequence(sequence, mode, 0);
  return sequence;
}