Twig/WidgetExtension.php
public function getWidget(string $widgetGroup = '', array $widgetId = [])
    {
        return $this->widgetBuilder->build($this->widgets->getWidgets(), $widgetGroup, $widgetId);
    }
public function getWidget(string $widgetGroup = '', array $widgetId = [])
    {
        return $this->widgetBuilder->build($this->widgets->getWidgets(), $widgetGroup, $widgetId);
    }
Get Widgets.

@param string $widgetGroup
@param array  $widgetId

@return ItemInterface[]