getParentOf method

K? getParentOf(
  1. K? key
)

Returns the parent of key.

Will call parentGetter.

Should be overwritten if parentGetter is null.

Implementation

K? getParentOf(K? key) => key == null ? null : parentGetter!(key);