Where constructor

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

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 required,
})  : this.required = required ?? true,
      this.compare = compare ?? Compare.exact;