DartParameter constructor

DartParameter({
  1. required String name,
  2. required DartType type,
  3. DartElementRef<DartMethod>? parentRef,
  4. List<DartMetadata> metadata = const [],
  5. bool hasDefaultValue = false,
  6. bool isConst = false,
  7. bool isFinal = false,
  8. ParameterKind kind = ParameterKind.REGULAR,
})

Implementation

DartParameter({
  required String name,
  required this.type,
  this.parentRef,
  this.metadata = const [],
  this.hasDefaultValue = false,
  this.isConst = false,
  this.isFinal = false,
  this.kind = ParameterKind.REGULAR,
}) : super(name: name, location: ElementLocation.unknown());