optionalParams property

List<String> get optionalParams

Auto-detect optional parameters from path

Implementation

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