RiveFile class Null safety

Encapsulates a RiveFile and provides access to the list of Artboard objects it contains.

Constructors

RiveFile.import(ByteData bytes)
Imports a Rive file from an array of bytes. Will throw RiveFormatErrorException if data is malformed. Will throw RiveUnsupportedVersionException if the version is not supported.
factory

Properties

artboards List<Artboard>
Returns all artboards in the file
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
Contains the RiveFile's version information.
final
mainArtboard Artboard
Returns the first (main) artboard
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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 non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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