insertField abstract method

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

Inserts the code for a field.

The field is inserted after the last existing field, or at the beginning of compilationUnitMember, if it has no existing fields.

Implementation

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