merge method

  1. @override
EventHandler merge(
  1. EventHandler? handler
)
override

Returns an EventHandler that merges this and handler together.

The returned EventHandler may or may not be a new instance, based on the implementation of subclasses.

Implementation

@override
EventHandler merge(EventHandler? handler) {
  handlers.add(handler);
  return this;
}