Skip to content

Commit

Permalink
Added missing parameter type to _animationEndCallback.
Browse files Browse the repository at this point in the history
  • Loading branch information
awhitford committed Dec 15, 2020
1 parent 3b00e28 commit 835c0db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/src/animated_text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@ class _AnimatedTextKitState extends State<AnimatedTextKit>

_currentAnimatedText.initAnimation(_controller);

_controller.addStatusListener(_animationEndCallback);

_controller.forward();
_controller
..addStatusListener(_animationEndCallback)
..forward();
}

void _setPause() {
Expand All @@ -246,7 +246,7 @@ class _AnimatedTextKitState extends State<AnimatedTextKit>
widget.onNextBeforePause?.call(_index, isLast);
}

void _animationEndCallback(state) {
void _animationEndCallback(AnimationStatus state) {
if (state == AnimationStatus.completed) {
_setPause();
assert(null == _timer || !_timer.isActive);
Expand Down

0 comments on commit 835c0db

Please sign in to comment.