Get the iterator for looping over the animation. This allows the Animation to be used in for-each loops: for (AnimationFrame frame in animation) { ... }
@override Iterator<Image> get iterator => frames.iterator;