createMapperToDart method
Creates a function that, when receiving a DriftRow, extracts columns for
this result set into the mapped Row type.
Implementation
Row? Function(RawRow) createMapperToDart(
DriftDialect dialect,
ResultSetStructure structure,
) {
final positions = structure.tables[this];
if (positions == null) {
throw StateError('Table $aliasOrName has not been selected from');
}
return createMapperFromPositions(dialect, positions);
}