parseListItemToInt<T> static method

List<int> parseListItemToInt<T>(
  1. List<T> in_list,
  2. int toInt(
    1. T item
    )
)

Implementation

static List<int> parseListItemToInt<T>(
  List<T> in_list,
  int Function(T item) toInt,
) {
  List<int> ids = [];
  for (int i = 0; i < in_list.length; ++i) {
    ids.add(toInt.call(in_list[i]));
  }
  return ids;
}