insertMethod abstract method

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

Inserts the code for a method.

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

Implementation

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