postNotification

abstract fun postNotification(    event: String,     userInfo: <Error class: unknown class><String, Any?>,     deliverImmediately: Boolean = definedExternally)(source)

Posts event as native notifications of macOS. The userInfo is an Object that contains the user information dictionary sent along with the notification.