append method
Implementation
Future<void> append(String path, Object data) async {
final file = await open(
path,
options: const FileOptions(mode: FileMode.readWrite),
);
try {
await file.append(data);
} finally {
await file.close();
}
}