appendFrom method

Future<void> appendFrom(
  1. File file
)

Appends content of file at the end of this file.

Implementation

Future<void> appendFrom(File file) async {
  final sink = openWrite(mode: FileMode.writeOnlyAppend);
  await sink.addStream(file.openRead());
  await sink.close();
}