imageCompression static method

Future<File> imageCompression({
  1. required File picture,
  2. String? fileType,
})

Implementation

static Future<File> imageCompression({
  required File picture,
  String? fileType,
}) async {
  return await changeFormatAndCompressImage(
          image: picture,
          format: fileType?.trim().toLowerCase() ?? 'jpeg',
          sizeLimit: null) ??
      File('');
}