read<T> method
Decodes selection from its declared position in this projection.
Selection identity is exact. An alias or optional selection must be read through the same object that was added to the projection.
Implementation
T read<T>(SqlSelection<T> selection) {
for (var index = 0; index < _columns.length; index++) {
if (identical(_columns[index], selection)) {
return selection.read(_row, index);
}
}
throw ArgumentError(
'Selection "${selection._resultColumn.name}" is not part of this '
'SQL projection.',
);
}