FunctionDefNode constructor

const FunctionDefNode({
  1. required String name,
  2. required ArgumentsNode args,
  3. required List<StatementNode> body,
  4. List<ExpressionNode> decoratorList = const [],
  5. ExpressionNode? returns,
  6. List<TypeParamNode> typeParams = const [],
})

Implementation

const new({
  required this.name,
  required this.args,
  required this.body,
  this.decoratorList = const [],
  this.returns,
  this.typeParams = const [],
});