addYamlFileEdit abstract method
Use the buildFileEdit function to create a collection of edits to the
currently analyzed file. 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 YAML source files.
Use the customPath if the collection of edits should be written to another
YAML file.
Implementation
void addYamlFileEdit(
void Function(YamlFileEditBuilder builder) buildFileEdit,
String? customPath,
);