iterator property Null safety

Iterator<Image> iterator
override

Get the iterator for looping over the animation. This allows the Animation to be used in for-each loops: for (AnimationFrame frame in animation) { ... }

Implementation

@override
Iterator<Image> get iterator => frames.iterator;