CallbackRegistration
class CallbackRegistration<T : Component, C : Any, L : Any>(adapter: (current: () -> C) -> L, registration: ListenerRegistration<T, L>)
A registration together with the adapter that builds the listener riding it: what a modifier taking a callback of type C, rather than a listener of type L, registers.
Declare one per builder and hold it in a val, as for a ListenerRegistration. The callback is not part of it: a fresh callback on every pass costs one field write.
Parameters
registration
where the built listener is registered.