whereIn method

DBHelper whereIn(
  1. String column,
  2. List values
)

Add a WHERE IN condition

Implementation

DBHelper whereIn(String column, List<dynamic> values) {
  if (values.isNotEmpty) {
    final placeholders = List.filled(values.length, '?').join(',');
    _whereConditions.add("$column IN ($placeholders)");
    _bindings.addAll(values);
  }
  return this;
}