ListenerRegistration

constructor(name: String, attach: (component: T, listener: L) -> Unit, detach: (component: T, listener: L) -> Unit, key: Any? = null)

Parameters

key

what identifies this registration among registrations built at the same site; null where the registration is held in a val and is therefore identified by being that object.