cropImage static method
Implementation
static Future<File> cropImage({
File? file,
Rect? area,
double? scale,
}) {
assert(file != null);
assert(area != null);
return _channel.invokeMethod('cropImage', {
'path': file!.path,
'left': area!.left,
'top': area.top,
'right': area.right,
'bottom': area.bottom,
'scale': scale ?? 1.0,
}).then<File>((result) => File(result));
}