insertGetter abstract method

void insertGetter(
  1. CompilationUnitMember compilationUnitMember,
  2. void buildEdit(
    1. DartEditBuilder builder
    )
)

Inserts the code for a getter.

The getter is inserted after the last existing field, constructor, or getter, or at the beginning of compilationUnitMember, if it has none of these.

Implementation

void insertGetter(
  CompilationUnitMember compilationUnitMember,
  void Function(DartEditBuilder builder) buildEdit,
);