DartConstructor constructor

DartConstructor({
  1. required String name,
  2. required ElementLocation location,
  3. required DartType returnType,
  4. required ConstructorKind constructorKind,
  5. List<DartParameter> parameters = const [],
  6. DartElementRef<DartElement>? parentRef,
  7. List<DartMetadata> metadata = const [],
})

Implementation

DartConstructor({
  required String name,
  required ElementLocation location,
  required DartType returnType,
  required this.constructorKind,
  List<DartParameter> parameters = const [],
  DartElementRef? parentRef,
  List<DartMetadata> metadata = const [],
}) : super(
        name: name,
        location: location,
        returnType: returnType,
        parameters: parameters,
        kind: MethodKind.CONSTRUCTOR,
        isTopLevel: false,
        isAbstract: false,
        isStatic: false,
        parentRef: parentRef,
        metadata: metadata,
      );