FeatureGenerator class
Main class for generating new feature templates in an existing Flutter project.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- logger → Logger
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
String featureName) → Future< void> -
Generate a new feature template with the given
featureName. -
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
-
detectArchitectureFromProject(
{required Directory root, required StateManagement stateManagement}) → Future< StateManagementArchitecture?> -
detectStateManagementFromProject(
Directory root) → Future< StateManagement> -
Detect the state management (GetX or Riverpod) used in the project at
root. -
findFlutterProjectRoot(
) → Directory - Find the root directory of the Flutter project by searching for pubspec.yaml and lib/.
-
runBuildRunner(
{required Directory projectRoot}) → Future< void> -
Run build_runner in the given
projectRootdirectory after feature generation.