putString method

void putString({
  1. required String key,
  2. String value = "",
})

保存string数据 key 存储key value string value

Implementation

void putString({required String key, String value = ""}) {
  if (key.isNotEmptyString) {
    _storageData<String>(key, value, "string");
  }
}