playNext method
Plays the entry after the one playing, wrapping past the last.
Implementation
void playNext() {
final entries = _sprite.entries;
play(entries[(_current.index + 1) % entries.length].key);
}
Plays the entry after the one playing, wrapping past the last.
void playNext() {
final entries = _sprite.entries;
play(entries[(_current.index + 1) % entries.length].key);
}