columnAsIterable<T> method

Iterable<T> columnAsIterable<T>(
  1. String colName, {
  2. int start = 0,
  3. int? end,
})

Returns an iterable over the records of a column sliced as per start and end.

Implementation

Iterable<T> columnAsIterable<T>(String colName, {int start = 0, int? end}) =>
    sublist(start, end).map((row) => row[columnIndex(colName)]).cast<T>();