mapList<T> method

List<T> mapList<T>(
  1. T f(
    1. E e
    ), {
  2. bool growable = true,
})

合并 map 和 toList 方法

Implementation

List<T> mapList<T>(T Function(E e) f, {bool growable = true}) =>
    map<T>(f).toList(growable: growable);