setEvents method
Update the events that the controller will use.
This is called internally by the editor widget only.
Parameters:
events: The event handlers for node, connection, and annotation events
Implementation
void setEvents(NodeFlowEvents<T> events) {
_events = events;
}