FunctionOptionalproperties: Partial<Omit<ListenerProperties, "callback">> = {}Listener configuration. Values
will be merged with the detected defaults. If properties.type is omitted, the name of the method will be used
to derive the event name from DefaultEventName.
Method decorator that registers the decorated method as an event listener, to be attached later via attachListenersAndBehaviors.
listener