DartFunction.main constructor

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

Implementation

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