DartVariable constructor

DartVariable({
  1. required String name,
  2. required ElementLocation location,
  3. required DartType type,
  4. DartElementRef<DartElement>? parentRef,
  5. bool isFinal = false,
  6. bool isConst = false,
  7. bool isStatic = false,
  8. bool isTopLevel = false,
  9. 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,
      );