String getStr(String key, {String defaultValue = ''}) { // 返回指定 key 的值,若为空或转换失败则返回默认值 return this[key] ?? defaultValue; }