JavaFunction constructor

JavaFunction({
  1. String functionName = '',
  2. FunctionBodyBuilder? body,
  3. List<Variable> params = const [],
  4. AstType returnType = const AstVoid(),
  5. int depth = 0,
  6. bool isAbstract = false,
  7. bool isOverride = false,
  8. bool isPublic = false,
  9. bool isPrivate = false,
  10. bool isStatic = false,
  11. bool isConstruct = false,
  12. bool oneLine = false,
})

Implementation

JavaFunction(
    {this.functionName = '',
    this.body,
    this.params = const [],
    this.returnType = const AstVoid(),
    int depth = 0,
    this.isAbstract = false,
    this.isOverride = false,
    this.isPublic = false,
    this.isPrivate = false,
    this.isStatic = false,
    this.isConstruct = false,
    this.oneLine = false})
    : assert(functionName.isNotEmpty),
      super(depth);