compressImageWithOptions method
Compress image with advanced options
Implementation
@override
Future<Map<String, dynamic>?> compressImageWithOptions(
String path,
Map<String, dynamic> options,
) async {
final result = await methodChannel.invokeMethod<Map<Object?, Object?>>(
'compressImageWithOptions',
{'path': path, 'options': options},
);
// Ensure proper casting to Map<String, dynamic>
return result?.map((key, value) => MapEntry(key as String, value));
}