const Dot({ Key? key, required this.index, required this.dotsCurve, this.scrollDirection = Axis.horizontal, }) : super(key: key);