setDataSource method

void setDataSource(
  1. TDataSource? aValue
)

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;
  }
}