scoresIndicatePass static method

bool scoresIndicatePass(
  1. Iterable<Score> scores
)

Whether the scores alone indicate a pass, independent of trial status. Ignores passed == null; no decided scores means not passed.

Implementation

static bool scoresIndicatePass(Iterable<Score> scores) {
  final decided = scores.where((s) => s.passed != null);
  if (decided.isEmpty) return false;
  return decided.every((s) => s.passed == true);
}