readConditions property

List<MssqlCondition> get readConditions

Every predicate a read carries: the soft-delete filter and the scopes that are still on.

Resolved on first use and then fixed for the life of this instance.

Implementation

List<MssqlCondition> get readConditions {
  final cached = _read;
  if (cached != null) return cached;
  final out = <MssqlCondition>[];
  final soft = binding.softDelete?.conditionFor(selection.trashed);
  if (soft != null) out.add(soft);
  out.addAll(globalConditions);
  return _read = List<MssqlCondition>.unmodifiable(out);
}