animation

This commit is contained in:
Alex
2025-07-08 14:56:01 -05:00
parent 596a3bd689
commit 382ce8c8f6
2 changed files with 38 additions and 62 deletions
@@ -186,6 +186,9 @@ class TimelineService {
Future<void> preCacheAssets(int index) =>
_mutex.run(() => _loadAssets(index, 5));
BaseAsset getRandomAsset() =>
_buffer.elementAt(math.Random().nextInt(_buffer.length));
BaseAsset getAsset(int index) {
if (!hasRange(index, 1)) {
throw RangeError('TimelineService::getAsset Index out of range');