moveForward method

void moveForward()

To display next image till the last image Index

Implementation

void moveForward() {
  if (listIndex.value < imageList.length - 1) {
    listIndex++;
  }
}