getT<T> static method
获取sp中key的对象值
SpUtils.getT("key", (json) => A.fromJson(json));
Implementation
static T? getT<T>(String key, T Function(dynamic json) fromJsonT) {
var str = _prefs.getString(key);
return str.kfromJson(fromJsonT);
}