requiredParams property

List<String> get requiredParams

Auto-detect required parameters from path

Implementation

List<String> get requiredParams {
  return RegExp(r':(\w+)(?!\?)')
      .allMatches(path)
      .map((match) => match.group(1)!)
      .toList();
}