fileToFile static method

Future<String> fileToFile(
  1. String src,
  2. ImageEditorOption option,
  3. String target
)

Handle file source and get file result.

Implementation

static Future<String> fileToFile(
  String src,
  ImageEditorOption option,
  String target,
) async {
  if (option.options.isEmpty || option.canIgnore) {
    return src;
  }

  return await channel.invokeMethod('fileToFile', {
    'src': src,
    'target': target,
    'options': option.toJson(),
    'fmt': option.outputFormat.toJson(),
  });
}