ok property

bool get ok

True when nothing either half looked at came out worse than same — the gate, in one word.

A scan rather than findings.isEmpty: this answers a boolean, and building a ranked list of rows to throw it away is the wrong price.

Implementation

bool get ok =>
    !previewItems.any((item) => isComparedFinding(item.state)) &&
    !scenarios.any((scenario) => isComparedFinding(scenario.state));