getStateMachine method

String? getStateMachine(
  1. String id
)

Implementation

String? getStateMachine(String id) {
  if (dotLottiePlayer != null && !isDisposed) {
    try {
      final player = dotLottiePlayer as JSObject;
      final method = player['stateMachineGet'.toJS] as JSFunction;
      final result = method.callAsFunction(player, id.toJS);
      return (result as JSString?)?.toDart;
    } catch (e) {}
  }
  return null;
}