decrease method
dynamic
decrease()
Implementation
decrease() {
if (highlightedIndex != 0)
setState(() {
itemScrollController.scrollTo(
index: highlightedIndex - 1,
curve: Curves.fastLinearToSlowEaseIn,
duration: Duration(milliseconds: 600));
highlightedIndex--;
});
}