FallbackAssetLoader class

Convenience class that extends FileAssetLoader and allows you to register fallbacks for loading Rive assets, such as images and fonts.

For example, you can use this to load assets from the CDN, and if that fails, load them from the asset bundle.

Alternatively, extend FileAssetLoader and override load for more custom control in how assets are resolved.

Inheritance

Constructors

FallbackAssetLoader(List<FileAssetLoader> fileAssetLoaders)

Properties

fileAssetLoaders List<FileAssetLoader>
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

load(FileAsset asset, Uint8List? embeddedBytes) Future<bool>
override
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