Convert uint8list image to a supported Image file(jpg or etc.)

To write Uint8list as a file, you can use File(String).writeAsBytes(Uint8list);. You can set the path and file extension on the File object and pass the image bytes on writeAsBytes()

Uint8List imageBytes;
File('image.jpg').writeAsBytes(imageBytes);