rive library Null safety

Classes

Artboard
ArtboardBase
Fill
FillBase
LinearAnimation
LinearAnimationBase
LinearAnimationInstance
LinearGradient
LinearGradientBase
RadialGradient
RadialGradientBase
Rive
RiveAnimationController<T>
RiveFile
Encapsulates a RiveFile and provides access to the list of Artboard objects it contains.
RiveRenderObject
RuntimeArtboard
This artboard type is purely for use by the runtime system and should not be directly referenced. Use the Artboard type for any direct interactions with an artboard, and use extension methods to add functionality to Artboard.
Shape
ShapeBase
SimpleAnimation
A simple RiveAnimationController that plays back a LinearAnimation defined by an artist. All playback parameters (looping, speed, keyframes) are artist defined in the Rive editor. This takes a declaritive approach of using an animationName as the only requirement for resolving the animation. When the controller is added to an artboard (note that due to widget lifecycles it could get re-initialized on another artboard later) it'll look for the animation. Not finding the animation is a condition this example deals with by simply nulling the AnimationInstance _instance which means it won't be applied during advance cycles. Another approach would be let this throw, but this one is a little more forgiving which can be desireable with files dynamically loaded (downloaded even) at runtime.
SolidColor
SolidColorBase
StateMachine
StateMachineBase
StateMachineController
An AnimationController which controls a StateMachine and provides access to the inputs of the StateMachine.
StateMachineInput<T>
Stroke
StrokeBase

Extensions

ArtboardAdditions
Artboard extensions

Constants

riveVersion → const RuntimeVersion
RuntimeVersion(7, 0)

Enums

Loop