code: def _dispatch_event(self):
          
          data = self._prepare_data()
          if data is not None:
              self._handler(self._event, data)
  
          self._reset_event_data()
docs: Dispatch the event to the handler.