diff --git a/lib/src/animated_rotate.dart b/lib/src/animated_rotate.dart index ec51dab..d01e976 100644 --- a/lib/src/animated_rotate.dart +++ b/lib/src/animated_rotate.dart @@ -35,9 +35,9 @@ class _AnimatedRoateState extends AnimatedWidgetBaseState { } @override - void forEachTween(visitor) { + void forEachTween(TweenVisitor visitor) { _rotateTween = visitor( - _rotateTween!, + _rotateTween, widget.angle, (dynamic value) => Tween(begin: value as double), ) as Tween?;