withPath static method
Implementation
static NullableRoutePredicate withPath(String path) {
return (Route<dynamic>? route) {
if (route!.settings is NuRouteSettings) {
final nuRouteSettings = route.settings as NuRouteSettings;
return !route.willHandlePopInternally &&
nuRouteSettings.pathTemplate == path;
}
return false;
};
}