normally the method "onPressed"just redirect to the "item.page"but don't give opportunity to make changes on "item.page" selected.That.s why a method called "click" is added inside the "item.onpressed" method.That method help to add other functionalities in "onPressed" method like adding variables or other event who can make changes on the "item.page"
normally the method "onPressed"just redirect to the "item.page"but don't give opportunity to make changes on "item.page" selected.That.s why a method called "click" is added inside the "item.onpressed" method.That method help to add other functionalities in "onPressed" method like adding variables or other event who can make changes on the "item.page"