getString method

String getString(
  1. String key
)

获取缓存String key cache key

Implementation

String getString(String key) {
  dynamic value = get(key);
  if (value == null || value is! String) {
    return "";
  }
  return value;
}