appendFromSync method

void appendFromSync(
  1. File file
)

Appends content of file at the end of this file.

Implementation

void appendFromSync(File file) {
  final fileAccess = openSync(mode: FileMode.writeOnlyAppend);
  fileAccess.writeFromSync(file.readAsBytesSync().toList());
  fileAccess.closeSync();
}