onEvent property
OnEvent<E> ?
onEvent
getter/setter pair
Called when an element is added, removed, or updated in the list/map before onUpdate is called and before the listeners are notified of the new value.
Implementation
OnEvent<E>? onEvent;