processImage method

  1. @override
Future<String?> processImage(
  1. String imagePath,
  2. MediaOptions options
)
override

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}');
  }
}