parseFileToByteArray function
parseBase64ToFile
is a helper function to parse a base64 string to a file.
Will return a List<int> and will receive a file
as PlatformFile
instance
Implementation
Future<List<int>> parseFileToByteArray(ThemedFile file) async {
return file.bytes.toList();
}