InfrastructureGenerator class
Generates infrastructure components for dependency injection and data mapping.
Creates locator configuration for dependency injection and mapper extensions for converting between data and domain layer objects.
Constructors
- InfrastructureGenerator({required ApiTypeResolver typeResolver, required ApiCodeTemplates codeTemplates})
Properties
- codeTemplates → ApiCodeTemplates
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- typeResolver → ApiTypeResolver
-
final
Methods
-
generateInfrastructure(
ApiGenerationConfig config) → void - Generates complete infrastructure for the API.
-
generateLocator(
ApiGenerationConfig config) → void - Generates or updates the locator configuration.
-
generateMapper(
ApiGenerationConfig config) → void - Generates mapper extensions.
-
generatePostLocator(
ApiGenerationConfig config) → void - Updates the locator with BLoC dependencies after all components are generated.
-
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