saveImage static method

Future<String?> saveImage({
  1. required String pathImage,
  2. int width = 0,
  3. int height = 0,
  4. bool removeOriginFile = false,
})

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