cropImage static method
Implementation
static Future<File> cropImage({
required File file,
required Rect area,
double? scale,
}) =>
_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));