RiveFile class
Encapsulates a RiveFile and provides access to the list of Artboard
objects it contains.
Methods
-
artboardByName(String name)
→ Artboard?
-
Returns an artboard from the specified name, or null if no artboard with
that name exists in the file
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
asset(String bundleKey, {AssetBundle? bundle, FileAssetLoader? assetLoader, bool loadCdnAssets = true, ObjectGenerator? objectGenerator})
→ Future<RiveFile>
-
Imports a Rive file from an asset bundle.
-
file(String path, {FileAssetLoader? assetLoader, bool loadCdnAssets = true, ObjectGenerator? objectGenerator})
→ Future<RiveFile>
-
Imports a Rive file from local path
-
initialize()
→ Future<void>
-
Initialize Rive's text, audio, and layout engines.
-
initializeText()
→ Future<void>
-
Initialize Rive's text engine if it hasn't been yet.
-
needsTextRuntime(ByteData bytes)
→ bool
-
-
network(String url, {FileAssetLoader? assetLoader, bool loadCdnAssets = true, ObjectGenerator? objectGenerator})
→ Future<RiveFile>
-
Imports a Rive file from a
url
over HTTP.