Swiper & SwiperController

Using the swiper with Swiper Controller. Swiper has 400 elements. When I randomly move between the index like 0->300->200->1->120 like this using swipecontroller.move(index). Some times it works. Some times it jumps to first page(index=0). In general it misbehaves.

Any inputs on how to solve jump to different index in Swiper without

I solved this problem by adding 50ms delay while moving.

     Future.delayed(Duration(milliseconds: 50), () {
       _controller.move(moveIndex);
     });