where method

Router where(
  1. String paramName,
  2. String regex
)

Implementation

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