n">(</span><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html">Unit</a></span></span><span class="token punctuation">)</span></div><p class="paragraph">Define a transition with an event and optional action</p><h4 class="">Parameters</h4><div class="table"><div class="table-row" data-filterable-current=":hooks/commonMain" data-filterable-set=":hooks/commonMain"><div class="main-subrow keyValue "><di