I need to resize image file and save it back to cache. To resize image:
ImageProvider img = ResizeImage.resizeIfNeeded(1024, null, FileImage(File(path)));
I guess img
object contains resized image data. How to save it to file to access it when required?