call this when user presses the back button present within device controls
Future<bool> onWillPop() async { if (isUserOnTheFirstPage) { return true; } else { goToPreviousPage(); return false; } }