Returns the parent of key.
key
Will call parentGetter.
Should be overwritten if parentGetter is null.
K? getParentOf(K? key) => key == null ? null : parentGetter!(key);