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