lib/components/web/widgets/Widget.php
public function getState($key, $default = null)
    {
        return Yii::$app->webState->get($this->stateKeyName($key), $default);
    }
public function getState($key, $default = null)
    {
        return Yii::$app->webState->get($this->stateKeyName($key), $default);
    }
Get state.

@param [[@doctodo param_type:key]]     $key     [[@doctodo param_description:key]]
@param [[@doctodo param_type:default]] $default [[@doctodo param_description:default]] [optional]

@return [[@doctodo return_type:getState]] [[@doctodo return_description:getState]]