ClassMethod constructor

ClassMethod(
  1. String? name,
  2. List<FnParam> params,
  3. List<Statement?> body, [
  4. OutputType? type,
  5. List<StmtModifier>? modifiers,
  6. List<Expression>? annotations,
])

Implementation

ClassMethod(
  this.name,
  this.params,
  this.body, [
  OutputType? type,
  List<StmtModifier>? modifiers,
  List<Expression>? annotations,
]) : super(type, modifiers ?? [], annotations ?? []);