Skip to content

Commit

Permalink
Tweaked an assertion validating repeat properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
awhitford committed Dec 7, 2020
1 parent addb1dc commit ef52c3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/animated_text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ class AnimatedTextKit extends StatefulWidget {
assert(null != stopPauseOnTap),
assert(null != isRepeatingAnimation),
assert(null != repeatForever),
assert(repeatForever || null != totalRepeatCount),
assert(
!isRepeatingAnimation || null != totalRepeatCount || repeatForever),
assert(null == onFinished || !repeatForever),
super(key: key);

Expand Down

0 comments on commit ef52c3f

Please sign in to comment.