fileToFile static method
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(),
});
}