writeGetterDeclaration abstract method
void
writeGetterDeclaration(})
Writes the code for a declaration of a getter with the given name.
If a bodyWriter is provided, it will be invoked to write the body of the
getter. (The space between the name and the body will automatically be
written.) If isStatic is true, then the declaration will be preceded
by the static keyword. If a nameGroupName is provided, the name of the
getter will be included in the linked edit group with that name. If a
returnType is provided, then it will be used as the return type of the
getter. If a returnTypeGroupName is provided, then if a return type was
written it will be in the linked edit group with that name.
Implementation
void writeGetterDeclaration(
String name, {
void Function() bodyWriter,
bool isStatic = false,
String nameGroupName,
DartType returnType,
String returnTypeGroupName,
});