stopAutoPlay method

  1. @override
void stopAutoPlay()
override

Stops the controlled CarouselSlider from autoplaying.

This is a more on-demand way of doing this. Use the autoPlay parameter in CarouselOptions to specify the autoPlay behaviour of the carousel.

Implementation

@override
void stopAutoPlay() {
  _state!.onResetTimer();
}