FunctionDeclarationNode constructor

const FunctionDeclarationNode({
  1. required String name,
  2. TypeNode? returnType,
  3. List<TypeParameterNode> typeParameters = const [],
  4. List<ParameterNode> parameters = const [],
  5. FunctionBodyNode? body,
  6. bool isStatic = false,
  7. bool isAbstract = false,
  8. bool isExternal = false,
  9. bool isGetter = false,
  10. bool isSetter = false,
  11. bool isOperator = false,
})

Implementation

const new({
  required this.name,
  this.returnType,
  this.typeParameters = const [],
  this.parameters = const [],
  this.body,
  this.isStatic = false,
  this.isAbstract = false,
  this.isExternal = false,
  this.isGetter = false,
  this.isSetter = false,
  this.isOperator = false,
});