onElementRemoved property

void Function(T element)? onElementRemoved
final

Called when an element is removed due to capacity overflow.

This callback is triggered before the element is actually removed, allowing you to perform any necessary cleanup or logging.

Implementation

final void Function(T element)? onElementRemoved;