DartVariable constructor
DartVariable({
- required String name,
- required ElementLocation location,
- required DartType type,
- DartElementRef<
DartElement> ? parentRef, - bool isFinal = false,
- bool isConst = false,
- bool isStatic = false,
- bool isTopLevel = false,
- List<
DartMetadata> metadata = const [],
Implementation
DartVariable({
required String name,
required ElementLocation location,
required this.type,
this.parentRef,
this.isFinal = false,
this.isConst = false,
this.isStatic = false,
bool isTopLevel = false,
List<DartMetadata> metadata = const [],
}) : super(
name: name,
location: location,
isTopLevel: isTopLevel,
metadata: metadata,
);