toGetter method
Implementation
DeclareFunctionStmt toGetter(
String name, {
List<Expression> annotations = const [],
}) {
return DeclareFunctionStmt(
name,
[],
statements,
annotations: annotations,
type: type,
isGetter: true,
);
}