putListT<T> static method
存储sp中key的对象值
SpUtils.putListT("key3", list,(json) => json.toJson());
Implementation
static Future<bool> putListT<T>(String key, List<T>? list,
Map<String, dynamic> Function(T value) toJsonT) {
return _prefs.setString(key, list.ktoJsonT(toJsonT));
}