addRangeToLast method

void addRangeToLast(
  1. int start
)

Adds a range from the specified start ID to to the last * element.

Implementation

void addRangeToLast(int start) {
  if (start == 0) {
    throw InvalidArgumentException('sequence ID must not be 0');
  }
  // start:*
  final wasEmpty = isEmpty;
  _isLastAdded = true;
  _ids.addAll([start, _elementRangeStar]);
  _text = wasEmpty ? '$start:*' : null;
}