compile function

PathFunction compile(
  1. String str, {
  2. bool sensitive = false,
  3. String encode(
    1. String
    )?,
  4. bool validate = true,
  5. String? delimiter,
  6. String prefixes = './',
})

Implementation

PathFunction compile(
  String str, {
  bool sensitive = false,
  String Function(String)? encode,
  bool validate = true,
  String? delimiter,
  String prefixes = './',
}

    // options?: ParseOptions & TokensToFunctionOptions
    ) {
  return tokensToFunction(
    parse(str, prefixes: prefixes, delimiter: delimiter),
    sensitive: sensitive,
    encode: encode,
    validate: validate,
  );
}