getCurrentRoute function
Function used to get the current route of the application
This is meant to be a much more desirable api to get the current route than referencing the router itself.
Implementation
PheasantTemplate getCurrentRoute([String? path]) {
return Router.globalRoutes[path ?? GlobalRoute.currentRoute] ??
UnknownPheasantTemplate();
}