saveFile static method
Saves bytes to a file at the specified path.
bytes: The bytes to save.
fileName: The name to give the saved file.
directory: The directory where the file should be saved.
Returns true if the file was saved successfully, false otherwise.
Implementation
static Future<bool> saveFile({
required List<int> bytes,
required String fileName,
required String directory,
}) async {
if (kIsWeb) return false; // Web implementation would go here
return await _instance.saveFile(
bytes: bytes,
fileName: fileName,
directory: directory,
);
}