protected function renderAfterItem($model, $key, $index)
    {
        if ($this->afterItem instanceof Closure) {
            return call_user_func($this->afterItem, $model, $key, $index, $this);
        }

        return null;
    }
protected function renderAfterItem($model, $key, $index)
    {
        if ($this->afterItem instanceof Closure) {
            return call_user_func($this->afterItem, $model, $key, $index, $this);
        }

        return null;
    }
protected function renderAfterItem ( $ model , $ key , $ index ) { if ( $ this -> afterItem instanceof Closure ) { return call_user_func ( $ this -> afterItem , $ model , $ key , $ index , $ this ) ; } return null ; }
Calls [[afterItem]] closure, returns execution result.
If [[afterItem]] is not a closure, `null` will be returned.

@param mixed $model the data model to be rendered
@param mixed $key the key value associated with the data model
@param int $index the zero-based index of the data model in the model array returned by [[dataProvider]].
@return string|null [[afterItem]] call result or `null` when [[afterItem]] is not a closure
@see afterItem
@since 2.0.11
Calls [[ afterItem ]] closure returns execution result . If [[ afterItem ]] is not a closure null will be returned .