CodeFilter class

CodeFilter defines the filter used to filter out specific files that needs to be indexed from the project.

Use this class when you need to index specific files from the project, for example, when you only want to index Dart files, you can use this class with a regex expression .*.dart to filter out all other files except the Dart files.

Example:

 final codeFilter = CodeFilter(pathRegex: r'.*\.dart');

This will only index the files with .dart extension.

Inheritance

Constructors

CodeFilter({String pathRegex = '.*'})
Creates a CodeFilter object.

Properties

hashCode int
The hash code for this object.
no setterinherited
minCliVersion String
no setteroverride
pathRegex String
Regex expression for filtering out the specific files that is needed to be indexed from the project.
final
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
process() Future<Map<String, dynamic>>
Internal method used by dash_agent to convert the shared DataSource to json format that can be sent on the web
override
toString() String
A string representation of this object.
inherited

Operators

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