build method
Override this method to build widgets that depend on the state of the listenable (e.g., the current value of the animation).
Implementation
@override
Widget build(BuildContext context) {
final Animation<double> animation = listenable as Animation<double>;
// final double _height = 60;
// print(animation.value);
return Container(
decoration: BoxDecoration(color: dotColor, shape: BoxShape.circle),
margin: EdgeInsets.only(bottom: animation.value, left: 5, right: 5),
height: dotSize,
width: dotSize,
);
}