previous method

void previous()

Implementation

void previous() {
  if (items.length <= 1) {
    return;
  }

  if (currentIndex - 1 >= 0) {
    toIndex(currentIndex - 1);
    return;
  }
}