internalWriteFile function

Future<void> internalWriteFile(
  1. String filename,
  2. Uint8List bytes
)

Internal detail. Write a file as bytes. This function only exists so we can override it with a fake version in wav_no_io.dart.

Implementation

Future<void> internalWriteFile(String filename, Uint8List bytes) {
  return File(filename).writeAsBytes(bytes);
}