visibleRows property
Rows currently inside the model viewport.
Implementation
List<TreeRow<T>> get visibleRows {
final projected = _projectRows();
if (height <= 0 || projected.length <= height) {
return List.unmodifiable(projected);
}
final start = _offset.clamp(0, _maxOffset(projected.length));
return List.unmodifiable(
projected.sublist(start, (start + height).clamp(0, projected.length)),
);
}