changePage method

void changePage(
  1. int index
)

Implementation

void changePage(int index) {
  try {
    if (currentIndex.value != index) {
      Get.offAllNamed(routes[index], id: navigationKey);
      currentIndex.value = index;
    }
  } catch (e) {
    Get.log(e.toString());
  }
}