src/Potter/Theme/Features.php
public function addWidget($widget)
    {
        if (is_array($widget)):
            $this->widgets = array_merge($this->widgets, $widget);
        else:
            $this->widgets[] = $widget;
        endif;

        return $this;
    }
public function addWidget($widget)
    {
        if (is_array($widget)):
            $this->widgets = array_merge($this->widgets, $widget);
        else:
            $this->widgets[] = $widget;
        endif;

        return $this;
    }
@param string|array $widget

@return $this