appendBytesSync method

Future<void> appendBytesSync(
  1. List<int> value
)

Appends value bytes at the end of the file.

Implementation

Future<void> appendBytesSync(List<int> value) async {
  final fileAccess = openSync(mode: FileMode.writeOnlyAppend);
  fileAccess.writeFromSync(value);
  fileAccess.closeSync();
}