addLast method Null safety

void addLast()

Adds the last element, which is alway *.

Implementation

void addLast() {
  // *
  final wasEmpty = isEmpty;
  _isLastAdded = true;
  _ids.add(STAR);
  _text = wasEmpty ? '*' : null;
}