ConstructorDeclarationNode constructor

const ConstructorDeclarationNode({
  1. required String name,
  2. String? constructorName,
  3. List<ParameterNode> parameters = const [],
  4. List<ConstructorInitializerNode> initializers = const [],
  5. FunctionBodyNode? body,
  6. bool isConst = false,
  7. bool isFactory = false,
  8. bool isExternal = false,
  9. String? redirectedConstructor,
})

Implementation

const new({
  required this.name,
  this.constructorName,
  this.parameters = const [],
  this.initializers = const [],
  this.body,
  this.isConst = false,
  this.isFactory = false,
  this.isExternal = false,
  this.redirectedConstructor,
});