From d724abf91595f58ed58f6c722ebe60acdb750c67 Mon Sep 17 00:00:00 2001 From: laiiihz Date: Fri, 5 Mar 2021 14:25:16 +0800 Subject: [PATCH] fix null check op --- lib/src/animated_rotate.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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?;