statusListener method
dynamic
statusListener(
- dynamic status
Implementation
statusListener(status) {
if (status == AnimationStatus.completed) {
if (!disposed) {
timers.add(Timer(
widget.waitDuration ?? Duration(seconds: widget.wait ?? 5),
() => {
if (!disposed)
{
setState(() {
_currentIndex =
(_currentIndex + 1) % widget.strings.length;
_animationController.reset();
_animationController.forward();
})
},
}));
}
}
}