copy method

EventNode<T> copy()

Creates an independent node with the same handler and last data. Used to move handlers between buses without sharing state.

Implementation

EventNode<T> copy() => EventNode<T>(handler: handler, lastData: lastData);