where method

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

Implementation

Router where(String paramName, String regex) {
  if (_routes.isNotEmpty) {
    _routes.last.regex ??= {};
    _routes.last.regex![paramName] = regex;
  }
  return this;
}