compressWithFileAndGetFile method
Future<String?>
compressWithFileAndGetFile(
{ - required String path,
- int targetWidth = 1920,
- int targetHeight = 1080,
- int quality = 95,
- required String targetPath,
- int rotate = 0,
- bool autoCorrectionAngle = true,
- HostFormat targetFormat = HostFormat.jpeg,
- bool keepExif = false,
- int numberOfRetries = 5,
})
Implementation
Future<String?> compressWithFileAndGetFile({required String path, int targetWidth = 1920, int targetHeight = 1080, int quality = 95, required String targetPath, int rotate = 0, bool autoCorrectionAngle = true, HostFormat targetFormat = HostFormat.jpeg, bool keepExif = false, int numberOfRetries = 5, }) async {
final pigeonVar_channelName = 'dev.flutter.pigeon.image_compress_plus_ios.ImageCompressPlusHostApi.compressWithFileAndGetFile$pigeonVar_messageChannelSuffix';
final pigeonVar_channel = BasicMessageChannel<Object?>(
pigeonVar_channelName,
pigeonChannelCodec,
binaryMessenger: pigeonVar_binaryMessenger,
);
final Future<Object?> pigeonVar_sendFuture = pigeonVar_channel.send(<Object?>[path, targetWidth, targetHeight, quality, targetPath, rotate, autoCorrectionAngle, targetFormat, keepExif, numberOfRetries]);
final pigeonVar_replyList = await pigeonVar_sendFuture as List<Object?>?;
final Object? pigeonVar_replyValue = _extractReplyValueOrThrow(
pigeonVar_replyList,
pigeonVar_channelName,
isNullValid: true,
)
;
return pigeonVar_replyValue as String?;
}