navigateWith function
void
navigateWith(
Function used in navigating to a new page with data
Implementation
void navigateWith(String url, Object data, [String? title]) {
pushState(data, title, url);
GlobalRoute.currentRoute = url;
}