ConstructorElementImpl constructor

ConstructorElementImpl({
  1. required String name,
  2. required Element enclosingElement,
  3. required bool isConst,
  4. required bool isFactory,
  5. required bool isGenerator,
  6. ConstructorElementRef? superConstructor,
})

Creates a constructor element with the specified properties.

@param name The name of the constructor (empty for default constructor) @param enclosingElement The class containing this constructor @param isConst Whether the constructor is a constant constructor @param isFactory Whether the constructor is a factory constructor @param isGenerator Whether the constructor is a generator @param superConstructor Reference to the superclass constructor called, if any

Implementation

ConstructorElementImpl({
  required super.name,
  required super.enclosingElement,
  required this.isConst,
  required this.isFactory,
  required super.isGenerator,
  this.superConstructor,
}) : super(
       isAsynchronous: false,
       isExternal: false,
       isOperator: false,
       isStatic: false,
       isSynchronous: true,
       isAbstract: false,
     );