show static method
显示存储的数据
Implementation
static show([String? showKey]) {
if (showKey != null) {
if (hasData(showKey)) {
XLog.d({showKey: get(showKey)});
} else {
XLog.d('没有-$showKey-存储');
}
return;
}
final keys = GetStorage().getKeys<Iterable<String>>();
final values = GetStorage().getValues();
final map = {};
for (var i = 0; i < keys.length; ++i) {
final key = keys.elementAt(i);
final value = values.elementAt(i);
map[key] = value;
}
XLog.d(map);
}