compress method

Future<File> compress(
  1. File image
)

Implementation

Future<File> compress(File image) async {
  // ImageProperties properties =
  //     await FlutterNativeImage.getImageProperties(image.path);
  File compressedFile = await FlutterNativeImage.compressImage(image.path,
      quality: 95,
    //  targetWidth: 600, targetHeight: 1000
  );

  return compressedFile;
}