RelativePattern class

A relative pattern is a helper to construct glob patterns that are matched relatively to a base file path. The base path can either be an absolute file path as string or uri or a {@link WorkspaceFolderworkspace folder}, which is the preferred way of creating the relative pattern.

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

RelativePattern(Object base, String pattern)
factory

Properties

base String

Available on RelativePattern, provided by the RelativePattern$Typings extension

A base file path to which this pattern will be matched against relatively.
getter/setter pair
baseUri Uri

Available on RelativePattern, provided by the RelativePattern$Typings extension

A base file path to which this pattern will be matched against relatively. The file path must be absolute, should not have any trailing path separators and not include any relative segments (. or ..).
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
pattern String

Available on RelativePattern, provided by the RelativePattern$Typings extension

A file glob pattern like *.{ts,js} that will be matched on file paths relative to the base path.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited