stateMachineOverrideState method
Implementation
bool stateMachineOverrideState(String state, bool immediate) {
if (dotLottiePlayer != null && !isDisposed) {
try {
final player = dotLottiePlayer as JSObject;
final method = player['stateMachineOverrideState'.toJS] as JSFunction;
final result = method.callAsFunction(
player,
state.toJS,
immediate.toJS,
);
return (result as JSBoolean?)?.toDart ?? false;
} catch (e) {
return false;
}
}
return false;
}