cropImage static method

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

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