flutter dart error dart(argument_type_not_assignable)
The Color
type of the Animation
in the assignment is missing the '?' as ColorTween
is a Tween<Color?>
.
Try like this:
TweenSequenceItem( weight: 1.0, tween: ColorTween( begin: Colors.black, end: Colors.lightBlue, ) as Animatable<Color>,)