MigrationDetector class abstract
Base class for all v5 pattern detectors.
Subclasses scan the project tree for specific v5 patterns and return a DetectorResult with any findings.
Constructors
Properties
- detectorId → String
-
no setter
- displayName → String
-
no setter
-
globs
→ List<
String> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
detect(
String projectDir) → Future< DetectorResult> -
lineNumberAt(
String content, int offset) → int -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readFile(
String absolutePath) → String? -
relativePathOf(
String absolute, String base) → String -
shouldScan(
String relativePath) → bool -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited