public dispatch(payload as T) as Void:
Emits a pre-built event payload.
User-facing code should prefer emit this.eventName(...) so the compiler constructs the payload from the event declaration type.
| Parameter | Description |
|---|---|
payload | Payload passed to each handler. |
dispatcher.dispatch(Event(source))