InitMethodGenerator constructor
InitMethodGenerator({
- required List<
DependencyConfig> scopeDependencies, - required DependencyList allDependencies,
- required String initializerName,
- Uri? targetFile,
- bool asExtension = false,
- String? scopeName,
- bool isMicroPackage = false,
- Set<
ExternalModuleConfig> microPackagesModulesBefore = const {}, - Set<
ExternalModuleConfig> microPackagesModulesAfter = const {}, - bool usesConstructorCallback = false,
Implementation
InitMethodGenerator({
required List<DependencyConfig> scopeDependencies,
required this.allDependencies,
required this.initializerName,
this.targetFile,
this.asExtension = false,
this.scopeName,
this.isMicroPackage = false,
this.microPackagesModulesBefore = const {},
this.microPackagesModulesAfter = const {},
this.usesConstructorCallback = false,
}) : assert(microPackagesModulesBefore.isEmpty || scopeName == null),
dependencies = DependencyList(dependencies: scopeDependencies);