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