cropImage static method
Implementation
static Future<File?> cropImage({required String sourcePath}) async {
assert(await File(sourcePath).exists());
final arguments = <String, dynamic>{
'source_path': sourcePath,
};
try {
if(!Platform.isAndroid) {
return null;
}
final String? resultPath =
await _channel.invokeMethod('cropImage', arguments);
return resultPath == null ? null : new File(resultPath);
} catch (e) {}
return null;
}