BoxerQueryOption.eq constructor

BoxerQueryOption.eq({
  1. required List<String> columns,
  2. required List<Object?> values,
  3. BoxerOptionType join = BoxerOptionType.AND,
})

Implementation

factory BoxerQueryOption.eq({
  required List<String> columns,
  required List<Object?> values,
  BoxerOptionType join = BoxerOptionType.AND,
}) {
  ensureLegality(columns: columns, values: values);
  String? _where = joinWith(columns.map((e) => '$e = ?').toList(), join);
  return BoxerQueryOption()
    ..where = _where
    ..whereArgs = values;
}