memoryToMemory static method
Handle memory source and get momory result.
Implementation
static Future<Uint8List> memoryToMemory(
Uint8List memory,
ImageEditorOption option,
) async {
if (option.options.isEmpty || option.canIgnore) {
return memory;
}
final result = await channel.invokeMethod('memoryToMemory', {
'image': memory,
'options': option.toJson(),
'fmt': option.outputFormat.toJson(),
});
return result;
}