saveBytes function
Save file as bytes to location
Implementation
Future<void> saveBytes({
required String printName,
required String fileType,
required Uint8List bytes,
required String path,
bool isBytes = true
}) async {
await File('$path/$printName.$fileType').writeAsBytes(bytes);
}