cropImage method

  1. @override
Future<String?> cropImage(
  1. String sourcePath
)
override

Launch native image cropper for the given image path. Returns the cropped image path.

Implementation

@override
Future<String?> cropImage(String sourcePath) async {
  final result = await methodChannel.invokeMethod<String>('cropImage', {
    'sourcePath': sourcePath,
  });
  return result;
}