Returns the index of an item based on its key.
Returns null if the item key is not found in the permutations.
null
int? indexOf(Key itemKey) => _indexByItemKey[itemKey];