saveImage static method
if you want to get original of Image
don't give a value of width
and height
cause default is return width
= 0, [height} = 0
which will make it to get the original image
remove origin file removeOriginFile
default false
Implementation
static Future<String?> saveImage({
required String pathImage,
int width = 0,
int height = 0,
bool removeOriginFile = false,
}) async {
Map<String, dynamic> args = <String, dynamic>{};
args.putIfAbsent('pathImage', () => pathImage.toLowerCase());
args.putIfAbsent('width', () => width);
args.putIfAbsent('height', () => height);
args.putIfAbsent('removeOriginFile', () => removeOriginFile);
return _channel.invokeMethod('saveImage', args);
}