flip method
Implementation
@override
FutureOr<String?> flip(Uint8List imageData, String axis)
{
// get decoder
final decoder = findDecoderForData(imageData);
if (decoder == null) return null;
// decode image
Image? image = decoder.decode(imageData);
if (image != null)
{
image = (axis == "vertical") ? flipVertical(image) : flipHorizontal(image);
return _encode(image, decoder);
}
return null;
}