where method

SelectQuery where(
  1. String condition, [
  2. List args = const []
])

Add WHERE condition

Implementation

SelectQuery where(String condition, [List<dynamic> args = const []]) {
  if (_whereClause.isEmpty) {
    _whereClause = 'WHERE $condition';
  } else {
    _whereClause += ' AND $condition';
  }
  _whereArgs.addAll(args);
  return this;
}