dispatchEvent

open fun dispatchEvent(event: Event): Boolean(source)

The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.

MDN Reference