FileAsset class sealed
Base class for all file assets in a Rive file.
See also: ImageAsset, FontAsset, AudioAsset
- Implemented types
- Implementers
- Available extensions
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
- 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
Methods
-
decode(
Uint8List bytes) → Future< bool> -
Decodes the asset from the provided
bytes. -
dispose(
) → void -
Releases resources associated with this asset.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited