DartClass constructor
DartClass({
- required String name,
- required ElementLocation location,
- List<
DartVariable> fields = const [], - List<
DartMethod> methods = const [], - List<
DartClass> superInterfaces = const [], - bool isAbstract = false,
- bool isEnum = false,
- DartClass? superClass,
- DartElementRef<
DartLibrary> ? parentRef, - List<
DartType> generics = const [], - bool isTopLevel = true,
- 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,
);