play method
void
play()
Starts playback according to the current playMode.
Convenience method that calls the appropriate AnimationController method based on playMode:
- GKPlayMode.forward: calls forward.
- GKPlayMode.reverse: calls reverse.
- GKPlayMode.loop: calls repeat.
- GKPlayMode.pingPong: calls repeat with
reverse: true.
Implementation
void play() {
switch (_playMode) {
case GKPlayMode.forward:
forward();
case GKPlayMode.reverse:
reverse();
case GKPlayMode.loop:
repeat();
case GKPlayMode.pingPong:
repeat(reverse: true);
}
}