createList<T> function

List<T> createList<T>(
  1. List maps,
  2. Function mapper
)

Implementation

List<T> createList<T>(List maps, Function mapper) {
  return maps.map((o) => mapper(o)).toList().cast<T>();
}