resizeWithResolution method
Resize image with resolution
Implementation
Image? resizeWithResolution(ImageResolution resolution) {
if (data?.isNotEmpty == true) {
final _image = decodeImage(data!);
if (_image != null) {
return _image.resizeWithResolution(resolution);
}
}
return null;
}