processImage method
Implementation
@override
Future<String?> processImage(String imagePath, MediaOptions options) async {
try {
final result = await methodChannel.invokeMethod<String>('processImage', {
'imagePath': imagePath,
'options': options.toMap(),
});
return result;
} on PlatformException catch (e) {
throw Exception('Error processing image: ${e.message}');
}
}