appendFile method

Future<void> appendFile(
  1. String fileID,
  2. String data, {
  3. String mime = "text/plain",
  4. String seperator = '\n',
})

Append data to an existing file of fileID

You may also provide the mime type of the format to export the file in, this defaults to plain text.

Optionally, you can provide a seperator which will be added between the existing data and the provided data. This defaults to a newline \n.

Implementation

Future<void> appendFile(
  String fileID,
  String data, {
  String mime = "text/plain",
  String seperator = '\n',
}) async {
  final oldData = (await exportFile(fileID, mime))!;
  updateFile(fileID, oldData + seperator + data);
}