Glob class

A Pattern that matches against filesystem path-like strings with wildcards.

The pattern matches strings as follows:

  • The whole string must match, not a substring
  • Any non wildcard is matched as a literal
  • '*' matches one or more characters except '/'
  • '?' matches exactly one character except '/'
  • '**' matches one or more characters including '/'
Implemented types

Constructors

Glob(String pattern)

Properties

hashCode int
The hash code for this object. [...]
read-only, override
pattern String
final
regex RegExp
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

allMatches(String str, [ int start = 0 ]) Iterable<Match>
Match this pattern against the string repeatedly. [...]
override
hasMatch(String str) bool
matchAsPrefix(String string, [ int start = 0 ]) Match
Match this pattern against the start of string. [...]
override
toString() String
Returns a string representation of this object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
override