Method constructor

Method(
  1. String name,
  2. CodeNode body, {
  3. List<DocComment> docComments = const [],
  4. List<Annotation> annotations = const [],
  5. Type? type,
  6. Parameters? parameters,
  7. Asynchrony? asynchrony,
})

Implementation

Method(
  String name,
  CodeNode body, {
  this.docComments = const [],
  this.annotations = const [],
  this.type,
  this.parameters,
  this.asynchrony,
})  : abstract = false,
      static = false,
      final$ = false,
      name = IdentifierStartingWithLowerCase(name),
      propertyAccessor = null,
      body = Body([body]);