saveImage method

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

Implementation

@override
Future<String?> saveImage(
    {required String pathImage,
    int width = 0,
    int height = 0,
    bool removeOriginFile = false}) {
  final args = {
    'pathImage': pathImage,
    'width': width,
    'height': height,
    'removeOriginFile': removeOriginFile,
  };
  return methodChannel.invokeMethod<String>(Constant.saveImage, args);
}