OPPAssetRef class

Binding to the exact 3D asset bytes this record accompanies.

Every field is copied verbatim from the $VAM that governs the asset, so an $OPP is valid for exactly one reviewed variant. Different bytes are a different asset: mint a new $OPP and set SUPERSEDES_OPP_CID rather than repointing an existing one.

Constructors

OPPAssetRef(List<int> bytes)
factory

Properties

ASSET_CID → String?
$VAMVariant.CID verbatim.
no setter
ASSET_FILE_NAME → String?
$VAMVariant.FILE_NAME verbatim.
no setter
ASSET_MEDIA_TYPE → String?
$VAMVariant.MEDIA_TYPE verbatim.
no setter
ASSET_SHA256 → String?
$VAMVariant.BYTE_SHA256 verbatim: 64 lowercase hexadecimal characters encoding SHA-256 of the exact asset file bytes.
no setter
assetCid → String?
no setter
assetFileName → String?
no setter
assetMediaType → String?
no setter
assetSha256 → String?
no setter
ENTITY_ID → String?
$VAM.ENTITY_ID verbatim. MUST equal OPP.ENTITY_ID.
no setter
entityId → String?
no setter
GEOMETRY_MATCHES_PHYSICAL → bool
True only when the asset geometry was authored or rescaled to the physical dimensions in this record. False, the default, means the asset is representative and its geometry is not a source of physical dimensions.
no setter
geometryMatchesPhysical → bool
no setter
GLTF_VERSION → String?
$VAMVariant.GLTF_VERSION verbatim.
no setter
gltfVersion → String?
no setter
hashCode → int
The hash code for this object.
no setterinherited
METERS_PER_ASSET_UNIT → double
Metres per asset unit for the named variant. Restates $VAMTransform.METERS_PER_SOURCE_UNIT for consumers that read only $OPP.
no setter
metersPerAssetUnit → double
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
VAM_CID → String?
CIDv1 containing a multihash of the exact $VAM bytes.
no setter
VAM_ID → String?
$VAM.ID verbatim.
no setter
VAM_VERSION → String?
$VAM.VERSION verbatim.
no setter
vamCid → String?
no setter
vamId → String?
no setter
vamVersion → String?
no setter
VARIANT_ID → String?
$VAMVariant.ID verbatim: the specific glTF or GLB this record describes.
no setter
variantId → String?
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

reader → const Reader<OPPAssetRef>