base64ToImage method

Future<File> base64ToImage(
  1. String base64Image,
  2. String path
)

Implementation

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