parseFileToByteArray function

Future<List<int>> parseFileToByteArray(
  1. ThemedFile file
)

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();
}