changePage method
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());
}
}