compressImage method

  1. @override
Future<String?> compressImage(
  1. String fileName, {
  2. int quality = 70,
})
override

Implementation

@override
Future<String?> compressImage(String fileName, {int quality = 70}) async {
  final String? path = await methodChannel.invokeMethod<String>(
      'compress_image', {'file': fileName, 'quality': quality});
  return path;
}