ProjectDetector class
Detects Flutter projects in directories.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Static Methods
-
findProjects(
String rootPath, {int maxDepth = 0, Set< String> ? seenPaths}) → List<String> -
Recursively finds all Flutter projects in a directory tree.
rootPathis the root directory to search.maxDepthlimits the recursion depth (0 = unlimited).seenPathstracks already-seen paths to avoid duplicates. -
findProjectsInRoots(
List< String> rootPaths, {int maxDepth = 0}) → Map<String, List< String> > - Finds Flutter projects in multiple root directories. Returns a map of root path to list of projects found in that root.
-
isFlutterProject(
String dirPath) → bool - Checks if a directory is a Flutter project root. A directory is considered a Flutter project if it contains: