Router where(String paramName, String regex) { for (final route in _lastAdded) { (route.regex ??= {})[paramName] = regex; } return this; }