StateMachine class abstract

Implemented types

Constructors

StateMachine()

Properties

boundRuntimeViewModelInstance ViewModelInstance?
no setter
eventListenerCount int
The number of Rive event listeners
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
inputs List<Input>
Returns a list of all inputs in the state machine.
no setter
isDone bool
no setter
name String
no setter
numberOfAdvanceRequestListeners int
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addAdvanceRequestListener(VoidCallback callback) → void
inherited
addEventListener(OnRiveEvent callback) → void
Adds a Rive event listener
inherited
advance(double elapsedSeconds, bool newFrame) bool
advanceAndApply(double elapsedSeconds) bool
bindViewModelInstance(ViewModelInstance viewModelInstance) → void
Binds the provided viewModelInstance to the state machine
boolean(String name, {String? path}) BooleanInput?
Retrieve a boolean input from the state machine with the given name. Get/set the BooleanInput.value of the input.
dispose() → void
dragEnd(Vec2D position, {double? timeStamp}) HitResult
dragStart(Vec2D position, {double? timeStamp}) HitResult
hitTest(Vec2D position) bool
inputAt(int index) Input?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
number(String name, {String? path}) NumberInput?
Retrieve a number input from the state machine with the given name. Get/set the NumberInput.value of the input.
onDataBindChanged(dynamic callback()) CallbackHandler
onInputChanged(dynamic callback(int index)) CallbackHandler
pointerDown(Vec2D position, {int pointerId = 0}) HitResult
pointerExit(Vec2D position, {int pointerId = 0}) HitResult
pointerMove(Vec2D position, {double? timeStamp, int pointerId = 0}) HitResult
pointerUp(Vec2D position, {int pointerId = 0}) HitResult
removeAdvanceRequestListener(VoidCallback callback) → void
inherited
removeAllAdvanceRequestListeners() → void
inherited
removeAllEventListeners() → void
inherited
removeEventListener(OnRiveEvent callback) → void
Removes the Rive event listener
inherited
reportedEvents() List<Event>
requestAdvance() → void
inherited
toString() String
A string representation of this object.
inherited
trigger(String name, {String? path}) TriggerInput?
Retrieve a trigger input from the state machine with the given name. Trigger the input by calling TriggerInput.fire.

Operators

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