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