Retrieves a TListItem by key, or null if not found.
TListItem<T, K>? getItem(K key) => _itemsMap[key];