listValues<T> method

List<T> listValues<T>([
  1. Object col = 0
])

col is int index , OR String key

Implementation

List<T> listValues<T>([Object col = 0]) {
  if (col case int n) {
    return this.mapList((e) => e[n] as T);
  }
  int n = labelToIndex(col.toString());
  return this.mapList((e) => e[n] as T);
}