sectioned_sliver_list/_internal_keys library
Internal sealed wrapper types used to keep section keys, item keys, section payloads, and item payloads in disjoint domains within a single underlying TreeController.
Not exported from the package barrel.
The wrappers are necessary because SectionedSliverList allows the
section-key type and the item-key type to share a single user-facing
type parameter K. Without the wrappers, _SectionKey("a") and
_ItemKey("a") would collide as map keys in the underlying tree's
node registry. The wrappers also let the node payload be either a
section or an item without forcing the user to write a sealed union.
Classes
-
ItemKey<
K> -
ItemPayload<
Section, Item> -
SecKey<
K> -
SecPayload<
Section, Item> -
SectionKey<
K> -
SectionPayload<
Section, Item>