LibraryGenerator constructor

LibraryGenerator({
  1. required List<DependencyConfig> dependencies,
  2. required String initializerName,
  3. Uri? targetFile,
  4. bool asExtension = false,
})

Implementation

LibraryGenerator({
  required List<DependencyConfig> dependencies,
  required String initializerName,
  Uri? targetFile,
  bool asExtension = false,
})  : _initializerName = initializerName,
      _targetFile = targetFile,
      _asExtension = asExtension {
  _dependencies = sortDependencies(dependencies);
}