Method.getter constructor
Method.getter(
- String name,
- CodeNode body, {
- List<
DocComment> docComments = const [], - List<
Annotation> annotations = const [], - bool final$ = false,
- Type? type,
- Parameters? parameters,
- 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]);