DartClass constructor

DartClass({
  1. required String name,
  2. required ElementLocation location,
  3. List<DartVariable> fields = const [],
  4. List<DartMethod> methods = const [],
  5. List<DartClass> superInterfaces = const [],
  6. bool isAbstract = false,
  7. bool isEnum = false,
  8. DartClass? superClass,
  9. DartElementRef<DartLibrary>? parentRef,
  10. List<DartType> generics = const [],
  11. bool isTopLevel = true,
  12. List<DartMetadata> metadata = const [],
})

Implementation

DartClass({
  required String name,
  required ElementLocation location,
  this.fields = const [],
  this.methods = const [],
  this.superInterfaces = const [],
  this.isAbstract = false,
  this.isEnum = false,
  this.superClass,
  DartElementRef<DartLibrary>? parentRef,
  List<DartType> generics = const [],
  bool isTopLevel = true,
  List<DartMetadata> metadata = const [],
}) : super(
        name: name,
        generics: generics,
        location: location,
        parentRef: parentRef,
        isTopLevel: isTopLevel,
        metadata: metadata,
      );