yaml_edit 2.2.1 yaml_edit: ^2.2.1 copied to clipboard
A library for YAML manipulation with comment and whitespace preservation.
import 'package:yaml_edit/yaml_edit.dart';
void main() {
final doc = YamlEditor('''
- 0 # comment 0
- 1 # comment 1
- 2 # comment 2
''');
doc.remove([1]);
print(doc);
}