Evaluation.fail constructor Null safety

const Evaluation.fail(
  1. [String? reason]
)

Create a failing evaluation, with an optional reason explaining the result.

Implementation

const Evaluation.fail([this.reason]) : passed = false;