JavaFunction constructor
JavaFunction({
- String functionName = '',
- FunctionBodyBuilder? body,
- List<
Variable> params = const [], - AstType returnType = const AstVoid(),
- int depth = 0,
- bool isAbstract = false,
- bool isOverride = false,
- bool isPublic = false,
- bool isPrivate = false,
- bool isStatic = false,
- bool isConstruct = false,
- 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);