saveImage method
Supports images,videos, audios and raw bytes
Implementation
Future<String> saveImage(String path, Uint8List image) async {
final base64Image = const Base64Encoder().convert(image);
final prefs = await SharedPreferences.getInstance();
await prefs.setString(path, base64Image);
return path;
}