DartFunction constructor

DartFunction({
  1. String functionName = '',
  2. List<Variable> params = const [],
  3. int depth = 0,
  4. bool isStatic = false,
  5. bool isAbstract = false,
  6. bool isConstructor = false,
  7. bool isAsync = false,
  8. FunctionBodyBuilder? body,
  9. AstType returnType = const AstVoid(),
})

Implementation

DartFunction({
  this.functionName = '',
  this.params = const [],
  int depth = 0,
  this.isStatic = false,
  this.isAbstract = false,
  this.isConstructor = false,
  this.isAsync = false,
  this.body,
  this.returnType = const AstVoid(),
}) : super(depth);