ensureAncestorsExpanded method

int ensureAncestorsExpanded(
  1. TKey key
)

Immediately expands every collapsed ancestor of key so that key becomes part of the visible order. Expansion is synchronous (no animation) so a subsequent scrollOffsetOf call sees the updated structure. Returns the number of ancestors that were expanded.

Implementation

int ensureAncestorsExpanded(TKey key) =>
    _scroll.ensureAncestorsExpanded(key);