exportToMermaid

suspend fun StateMachine.exportToMermaid(showEventLabels: Boolean = false, unsafeCallConditionalLambdas: Boolean = false): String

Export StateMachine to Mermaid state diagram

See also

Mermaid

showEventLabels prints event types for transitions unsafeCallConditionalLambdas will call conditional lambdas which can touch application data, this may give more complete output, but may be not safe (ClassCastException may be thrown). See ExportMetaInfo for more info.