toSQL method
Generates SQL by combining all conditions with AND.
Each condition is wrapped in parentheses and joined with " AND ". Subclasses can override this to implement different combination logic.
Returns the combined SQL string for all conditions.
Implementation
@override
String toSQL() {
var sql = <String>[];
for (int i = 0; i < _whereBodies.length; i++) {
sql.add('( ${_whereBodies[i].toSQL()} )');
}
return sql.join(' AND ');
}