length property

int get length

Returns the length of this list.

Implementation

int get length {
  int length = 0;
  Node<MiniSubscription<T>>? currentNode = _head;

  while (currentNode != null) {
    currentNode = currentNode.next;
    length++;
  }
  return length;
}