cropImage static method

Future<File> cropImage({
  1. File? file,
  2. Rect? area,
  3. double? scale,
})

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