setDataSource method
Implementation
void setDataSource(TDataSource? aValue) {
final ds = dataSource;
if (!identical(aValue, ds)) {
if (aValue != null && identical(aValue.dataSet, this)) {
databaseError(SErrCircularDataSourceReferenceNotAllowed, this);
}
if (ds != null) {
ds.removeFreeNotification(this);
}
_statement.dataSource = aValue;
}
}