ProjectConfig class
Configuration settings for flutter_architect in a target Flutter project.
Constructors
- ProjectConfig({ArchitectureType architecture = ArchitectureType.clean, StateManagementType stateManagement = StateManagementType.bloc, NetworkingType networking = NetworkingType.dio, DependencyInjectionType dependencyInjection = DependencyInjectionType.getIt, LocalStorageType localStorage = LocalStorageType.sharedPreferences, ThemeType theme = ThemeType.material3, LocalizationType localization = LocalizationType.flutter, EnvironmentType environment = EnvironmentType.dotenv, bool generateEntities = false, String? customTemplatePath})
-
const
- ProjectConfig.defaultConfig()
-
Default production config.
factory
- ProjectConfig.fromMap(Map map)
-
Parse from YAML map or plain Map.
factory
Properties
- architecture → ArchitectureType
-
final
- customTemplatePath → String?
-
final
- dependencyInjection → DependencyInjectionType
-
final
- environment → EnvironmentType
-
final
- generateEntities → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- localization → LocalizationType
-
final
- localStorage → LocalStorageType
-
final
- networking → NetworkingType
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stateManagement → StateManagementType
-
final
- theme → ThemeType
-
final
Methods
-
copyWith(
{ArchitectureType? architecture, StateManagementType? stateManagement, NetworkingType? networking, DependencyInjectionType? dependencyInjection, LocalStorageType? localStorage, ThemeType? theme, LocalizationType? localization, EnvironmentType? environment, bool? generateEntities, String? customTemplatePath}) → ProjectConfig -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Exports as Map.
-
toString(
) → String -
A string representation of this object.
inherited
-
toYamlString(
) → String -
Serializes into formatted YAML string for
flutter_architect.yaml.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited