decrease method

  1. @override
void decrease()
override

Decreases the index by 1.

If the index is already at minimum it does not change the index.

Implementation

@override
void decrease() {
  final nextLowerIndex = _getNextLowerIndex(_currentIndex);
  if (_currentIndex != nextLowerIndex) {
    _currentIndex = nextLowerIndex;
    notifyListeners();
  }
}