resizeWithResolution method

Image? resizeWithResolution(
  1. ImageResolution resolution
)

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;
}