DartFunction.withName constructor
DartFunction.withName(
- String name,
- CodeNode body, {
- List<
DocComment> docComments = const [], - List<
Annotation> annotations = const [], - Type? returnType,
- Parameters? parameters,
- Asynchrony? asynchrony,
Implementation
DartFunction.withName(
String name,
CodeNode body, {
this.docComments = const [],
this.annotations = const [],
this.returnType,
this.parameters,
this.asynchrony,
}) : name = IdentifierStartingWithLowerCase(name),
body = Body([body]);