itemCount method
Number of items currently belonging to sectionKey, regardless
of expansion state. Returns 0 for unknown sections. Includes
pending-deletion children — this is the count rendered by the
header, since exit animations are still visible.
Implementation
int itemCount(K sectionKey) {
_checkNotDisposed();
return _tree.getChildCount(SectionKey<K>(sectionKey));
}