artboardChanged method
Called when the underlying artboard changes.
Implementation
@override
void artboardChanged(rive.Artboard artboard) {
super.artboardChanged(artboard);
_stateMachine?.dispose();
final machine = _stateMachine = stateMachineName != null
? artboard.stateMachine(stateMachineName!)
: artboard.defaultStateMachine();
if (machine != null) {
_inputCallbackHandler = machine.onInputChanged(_onInputChanged);
withStateMachine?.call(machine);
}
notifyListeners();
}