Assertion class

One specific check inside a Score. Holds enough detail that a human can understand why it passed or failed without re-running the trial.

Constructors

Assertion({required String description, required bool passed, String? actual, String? expected})
const
Assertion.fromJson(Map<String, dynamic> json)
factory

Properties

actual → String?
Observed value (stringified for human readability).
final
description → String
final
expected → String?
Expected value.
final
hashCode → int
The hash code for this object.
no setterinherited
passed → bool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited