Future<File> base64ToImage(String base64Image, String path) async { File file = File(path); await file.writeAsBytes(base64Decode(base64Image)); return file; }