mapList<E> method

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

The elements of this iterable are modified by toElement and converted iterable to list

most convenient when used with build Flutter widgets

Implementation

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