compress method

Future<File> compress(
  1. File image
)

Implementation

Future<File> compress(File image) async {
  File compressedFile = await FlutterNativeImage.compressImage(
    image.path,
    quality: 95,
  );

  return compressedFile;
}