decodeImageFile function
Implementation
Image? decodeImageFile(String filePath) {
final image = decodeImage(File(filePath).readAsBytesSync());
if (image == null) {
throw NoDecoderForImageFormatException(filePath);
}
return image;
}
Image? decodeImageFile(String filePath) {
final image = decodeImage(File(filePath).readAsBytesSync());
if (image == null) {
throw NoDecoderForImageFormatException(filePath);
}
return image;
}