optionalParams property

  1. @override
List<String> get optionalParams
override

Override to scan the fullPath for optional parameters.

Implementation

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