Where constructor

const Where(
  1. String evaluatedField, {
  2. dynamic value,
  3. Compare? compare,
  4. bool? isRequired,
})

A condition that evaluates to true in the Provider should return Model.

This class should be exposed by the implemented Repository and not imported from this package as repositories may choose to extend or inhibit functionality.

Implementation

const Where(
  this.evaluatedField, {
  this.value,
  Compare? compare,
  bool? isRequired,
})  : isRequired = isRequired ?? true,
      compare = compare ?? Compare.exact;