Method.getter constructor

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

Implementation

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