InitMethodGenerator constructor

InitMethodGenerator({
  1. required List<DependencyConfig> scopeDependencies,
  2. required DependencyList allDependencies,
  3. required String initializerName,
  4. Uri? targetFile,
  5. bool asExtension = false,
  6. String? scopeName,
  7. bool isMicroPackage = false,
  8. Set<ExternalModuleConfig> microPackagesModulesBefore = const {},
  9. Set<ExternalModuleConfig> microPackagesModulesAfter = const {},
  10. 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);