code: public function afterRun($event)
      {
          echo $event->result;
          $event->result = null;
  
          $this->owner->view->endCache();
      }
docs: Outputs widget contents and ends fragment caching.
  
  @param WidgetEvent $event `Widget::EVENT_AFTER_RUN` event.