# clone method

ImageRef? clone()

Creates a deep copy of the image.

## Implementation

    ImageRef? clone() {
      return using((Arena arena) {
        Pointer<Utf8> pUUID = uniqueId!.toNativeUtf8(allocator: arena);
        String? cloneUUID = _consumeString(_nativeClone(pUUID));
        if (cloneUUID == null) {
          return null;
        }

        ImageRef ref = ImageRef._(cloneUUID);
        return ref;
      });
    }