addDartFileEdit abstract method
Future<void>
addDartFileEdit(
- String path,
- void buildFileEdit(
- DartFileEditBuilder builder
- ImportPrefixGenerator importPrefixGenerator,
Use the buildFileEdit
function to create a collection of edits to the
file with the given path
. The edits will be added to the source change
that is being built.
The builder passed to the buildFileEdit
function has additional support
for working with Dart source files.
Implementation
Future<void> addDartFileEdit(
String path, void Function(DartFileEditBuilder builder) buildFileEdit,
{ImportPrefixGenerator importPrefixGenerator});