DartLibrary constructor

DartLibrary({
  1. required String name,
  2. required ElementLocation location,
  3. DartElementRef<DartElement>? parentRef,
  4. List<DartClass> classes = const [],
  5. List<DartMethod> methods = const [],
  6. List<DartVariable> variables = const [],
  7. List<DartLibraryDependency> dependencies = const [],
})

Implementation

DartLibrary({
  required String name,
  required ElementLocation location,
  DartElementRef? parentRef,
  this.classes = const [],
  this.methods = const [],
  this.variables = const [],
  this.dependencies = const [],
}) : super(name: name, location: location);