getEstimatedExtentNid method

double getEstimatedExtentNid(
  1. int nid
)

Estimated full extent for the live nid — measured value when available, defaultExtent otherwise. Hot-path equivalent of getEstimatedExtent that avoids the TKey→nid hash. Caller must guarantee nid is live and within range.

Implementation

double getEstimatedExtentNid(int nid) {
  // Read directly from the coordinator's full-extent cache — the key
  // → nid hash is already done by the caller.
  final key = _nids.keyOfUnchecked(nid);
  return _anim.fullExtentOf(key) ?? defaultExtent;
}