getObjList<T> static method

List<T> getObjList<T>(
  1. String key,
  2. T f(
    1. Map<String, dynamic> v
    )
)

get obj list.

Implementation

static List<T> getObjList<T>(
    String key, T Function(Map<String, dynamic> v) f) {
  List<Map<String, dynamic>> dataList = getObjectList(key);
  return dataList.map((value) {
    return f(value);
  }).toList();
}