stateMachineStop method

bool stateMachineStop()

Implementation

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