addRangeToLast method Null safety

void addRangeToLast(
  1. int start
)

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

Implementation

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