SimpleWhere constructor

SimpleWhere(
  1. Map<String, Object?> conditions, {
  2. bool filterNullValues = false,
})

Implementation

SimpleWhere(this.conditions, {bool filterNullValues = false})
    : assert(filterNullValues || !conditions.values.contains(null),
          'where values must not be null.') {
  if (filterNullValues) {
    conditions.removeWhere((key, value) => value == null);
  }
  checkState(conditions.isNotEmpty);
}