loop method

void loop({
  1. bool pingPong = false,
})

Loop an animation. Pass pingPong to loop forward and reversed.

Implementation

void loop({bool pingPong = false}) {
  if (_controller != null) {
    _controller!.repeat(reverse: pingPong);
  }
}