SqlRow constructor
Creates a row from equally sized columns and values.
Both lists are defensively copied.
Implementation
factory SqlRow(List<String> columns, List<SqlValue> values) {
final copiedColumns = List<String>.unmodifiable(columns);
final copiedValues = List<SqlValue>.unmodifiable(values);
if (copiedColumns.length != copiedValues.length) {
throw ArgumentError(
'SqlRow requires the same number of columns and values.',
);
}
return SqlRow._(copiedColumns, copiedValues);
}