in example/lib/preload/ali_sliding_window.dart [161:171]
List<T> getWindowIndices(int position) {
if (position < 0 || position >= _itemList.length) return [];
final windowIndices = <T>[];
for (var offset in _windowItems) {
final index = position + offset;
if (index >= 0 && index < _itemList.length) {
windowIndices.add(_itemList[index]);
}
}
return windowIndices;
}