appendBytes method

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

Appends value bytes at the end of the file.

Implementation

Future<void> appendBytes(List<int> value) async {
  final fileAccess = await open(mode: FileMode.writeOnlyAppend);
  await fileAccess.writeFrom(value);
  await fileAccess.close();
}