handleAndGetUint8List method

Future<Uint8List?> handleAndGetUint8List(
  1. ImageEditorOption option
)

Implementation

Future<Uint8List?> handleAndGetUint8List(ImageEditorOption option) async {
  return _handle(() async {
    switch (_type) {
      case SrcType.file:
        return NativeChannel.fileToMemory(_file!.path, option);
      case SrcType.memory:
        return NativeChannel.memoryToMemory(_memory!, option);
    }
  });
}