DartFunction.withoutName constructor

DartFunction.withoutName(
  1. CodeNode body, {
  2. List<DocComment> docComments = const [],
  3. List<Annotation> annotations = const [],
  4. Type? returnType,
  5. Parameters? parameters,
  6. Asynchrony? asynchrony,
})

Implementation

DartFunction.withoutName(
  CodeNode body, {
  this.docComments = const [],
  this.annotations = const [],
  this.returnType,
  this.parameters,
  this.asynchrony,
})  : name = null,
      body = Body([body]);