SMIInput<T> class Null safety

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. [...]
read-only, inherited
id int
The id of the input within the context of the StateMachine it belongs to.
read-only
name String
The name given to this input at design time in Rive.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type SMIType
final
value ↔ T
read / write

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 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