getUnsatisfiedPreconditions method Null safety

Iterable<Precondition> getUnsatisfiedPreconditions()

Returns all known preconditions in this repository which has other Precondition.status then PreconditionStatus.satisfied().

Implementation

Iterable<Precondition> getUnsatisfiedPreconditions() {
  var list = _known.values.toList();
  return List.unmodifiable(list.where((p) => p.status.isNotSatisfied));
}