writeFileAsString method

Future<String> writeFileAsString({
  1. required String fileName,
  2. required String data,
})

Write data inside fileName and return the path to the file.

  • fileName: The name of the file (e.g: my_file.json).
  • data: The data to write inside the file.

Implementation

Future<String> writeFileAsString({
  required String fileName,
  required String data,
}) {
  throw UnimplementedError('writeFile() has not been implemented.');
}