getCurrentRoute static method
Returns the currentRoute or defaultRoute.
Implementation
static String getCurrentRoute({String defaultRoute = ''}) {
var route = currentRoute ?? '';
return route.isNotEmpty ? route : defaultRoute;
}
Returns the currentRoute or defaultRoute.
static String getCurrentRoute({String defaultRoute = ''}) {
var route = currentRoute ?? '';
return route.isNotEmpty ? route : defaultRoute;
}