HierarchyQuery.regex constructor

HierarchyQuery.regex(
  1. String rawQuery, {
  2. SearchTarget target,
})

Create a regex/glob query.

Segments are separated by /. Each segment is compiled as a case-sensitive regex anchored to the full name. The special segment ** matches zero or more hierarchy levels.

Glob wildcards * and ? are auto-converted to regex equivalents.

Implementation

factory HierarchyQuery.regex(
  String rawQuery, {
  SearchTarget target,
}) = RegexQuery;