resize method
Implementation
@override
FutureOr<String?> resize(Uint8List imageData, int width, int height)
{
// get decoder
final decoder = findDecoderForData(imageData);
if (decoder == null) return null;
// decode image
Image? image = decoder.decode(imageData);
if (image != null)
{
image = copyResize(image, width: width, height: height);
return _encode(image, decoder);
}
return null;
}