SMIInput<T> class abstract

SMI = StateMachineInstance

This is the abstraction of an instanced input from the StateMachine. Whenever a StateMachineController is created, the list of inputs in the corresponding StateMachine is wrapped into a set of SMIInput objects that ensure inputs are initialized to design-time values. The implementation can now change these values freely as they are decoupled from the backing StateMachine and can safely be re-instanced by another controller later.

Implementers

Properties

controller StateMachineController
final
hashCode int
The hash code for this object.
no setterinherited
id int
The id of the input within the context of the StateMachine it belongs to.
no setter
name String
The name given to this input at design time in Rive.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type SMIType
final
value ↔ T
getter/setter pair

Methods

advance() → void
change(T value) bool
Convenience method for changing the backing SMIInput.value of the input. For SMITrigger it's usually preferable to use the SMITrigger.fire method to change the input value, but calling change(true) is totally valid.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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