ImageAsset class abstract

An image asset embedded in or referenced by a Rive file.

Inheritance
Available extensions

Constructors

ImageAsset()

Properties

assetId int
The unique identifier for this asset within the file.
no setterinherited
assetUniqueName String

Available on FileAsset, provided by the FileAssetExtension extension

Returns a unique name combining the asset name and ID.
no setter
cdnBaseUrl String
The base URL for Rive's CDN.
no setterinherited
cdnUuid String
The unique CDN identifier for this asset.
no setterinherited
fileExtension String
The file extension for this asset type (e.g., "png", "ttf").
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
height double
The height of the image in pixels.
no setter
name String
The name of this asset as defined in the Rive editor.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uniqueFilename String

Available on FileAsset, provided by the FileAssetExtension extension

Returns a unique filename combining the asset name, ID, and extension.
no setter
url String

Available on FileAsset, provided by the FileAssetExtension extension

Returns the full CDN URL for this asset.
no setter
width double
The width of the image in pixels.
no setter

Methods

decode(Uint8List bytes) Future<bool>
Decodes the asset from the provided bytes.
inherited
dispose() → void
Releases resources associated with this asset.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
renderImage(RenderImage renderImage) bool
Sets the render image for this asset. Returns true if successful.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

coreType → const int