getMapListT<K, T> static method

Map<K, List<T>?>? getMapListT<K, T>(
  1. String key,
  2. T fromJsonT(
    1. dynamic json
    )
)

获取sp中key的Map对象值

Implementation

static Map<K, List<T>?>? getMapListT<K, T>(
    String key, T Function(dynamic json) fromJsonT) {
  var str = _prefs.getString(key);
  return str.kfromJsonMapList(fromJsonT);
}