File class abstract
Constructors
- File()
Properties
-
enums
→ List<
DataEnum> -
Returns a list of DataEnums contained in the file.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- viewModelCount → int
-
The number of view models in the Rive file
no setter
Methods
-
artboard(
String name, {bool frameOrigin = true}) → Artboard? -
artboardAt(
int index, {bool frameOrigin = true}) → Artboard? -
artboardToBind(
String name) → BindableArtboard? -
defaultArtboard(
{bool frameOrigin = true}) → Artboard? -
defaultArtboardViewModel(
Artboard artboard) → ViewModel? -
Returns the default view model for the provided
artboard -
dispose(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
viewModelByIndex(
int index) → ViewModel? - Returns a view model by the index in which it is located in the file
-
viewModelByName(
String name) → ViewModel? - Returns a view model by name
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
asset(
String bundleKey, {required Factory riveFactory, AssetBundle? bundle, AssetLoaderCallback? assetLoader}) → Future< File?> - Imports a Rive file from an asset bundle.
-
decode(
Uint8List bytes, {required Factory riveFactory, AssetLoaderCallback? assetLoader}) → Future< File?> -
path(
String path, {required Factory riveFactory, AssetLoaderCallback? assetLoader}) → Future< File?> -
url(
String url, {required Factory riveFactory, Map< String, String> ? headers, AssetLoaderCallback? assetLoader}) → Future<File?>