OptionaleventOptionalfromThe source state(s). Omitted, every state handles the event.
OptionalguardOptionalinThe region, when a state's enum is used by more than one @region.
OptionalreenterExit and re-enter the source even when the target is its descendant.
OptionaltoOmitted, the transition only runs its body.
The event's name, when it cannot be the method's: one of Machine's own (
stop,send), or not an identifier (media.ended). Calling the method sends it.