CodeMethod constructor

const CodeMethod({
  1. required String name,
  2. required String returnType,
  3. List<CodeParameter> parameters = const <CodeParameter>[],
  4. List<String> bodyLines = const <String>[],
  5. bool isAsync = false,
})

Creates a method node.

Implementation

const CodeMethod({
  required this.name,
  required this.returnType,
  this.parameters = const <CodeParameter>[],
  this.bodyLines = const <String>[],
  this.isAsync = false,
});